From 8f16a76781fb8f47094492c38a02c2cdc4ce5013 Mon Sep 17 00:00:00 2001 From: xuri Date: Wed, 18 May 2022 23:15:24 +0800 Subject: This fixes a part of staticcheck issues and updates the code of conduct Update example for set cell hyperlinks with `HyperlinkOpts` --- cell.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'cell.go') 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. -- cgit v1.2.1