summaryrefslogtreecommitdiff
path: root/cell.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2022-05-18 23:15:24 +0800
committerxuri <xuri.me@gmail.com>2022-05-18 23:15:24 +0800
commit8f16a76781fb8f47094492c38a02c2cdc4ce5013 (patch)
tree12a9933300ba1f196120e530091e4464e1a6bc35 /cell.go
parentbe5a4033c0c7de6247c02dc3ab76b634ac19d4c6 (diff)
This fixes a part of staticcheck issues and updates the code of conduct
Update example for set cell hyperlinks with `HyperlinkOpts`
Diffstat (limited to 'cell.go')
-rw-r--r--cell.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/cell.go b/cell.go
index 1e130dc..a302017 100644
--- a/cell.go
+++ b/cell.go
@@ -686,8 +686,12 @@ type HyperlinkOpts struct {
// the other functions such as `SetCellStyle` or `SetSheetRow`. The below is
// example for external link.
//
+// display, tooltip := "https://github.com/xuri/excelize", "Excelize on GitHub"
// if err := f.SetCellHyperLink("Sheet1", "A3",
-// "https://github.com/xuri/excelize", "External"); err != nil {
+// "https://github.com/xuri/excelize", "External", excelize.HyperlinkOpts{
+// Display: &display,
+// Tooltip: &tooltip,
+// }); err != nil {
// fmt.Println(err)
// }
// // Set underline and font color style for the cell.