From 9e64df6a96685afcfbc7295beda38739868a6871 Mon Sep 17 00:00:00 2001 From: xuri Date: Wed, 5 Jan 2022 00:13:29 +0800 Subject: Update create style example, using a pointer of the structure instead of JSON --- stream.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'stream.go') diff --git a/stream.go b/stream.go index 8df308d..2f7bf44 100644 --- a/stream.go +++ b/stream.go @@ -52,7 +52,7 @@ type StreamWriter struct { // if err != nil { // fmt.Println(err) // } -// styleID, err := file.NewStyle(`{"font":{"color":"#777777"}}`) +// styleID, err := file.NewStyle(&excelize.Style{Font: &excelize.Font{Color: "#777777"}}) // if err != nil { // fmt.Println(err) // } -- cgit v1.2.1