diff options
author | xuri <xuri.me@gmail.com> | 2022-01-05 00:13:29 +0800 |
---|---|---|
committer | xuri <xuri.me@gmail.com> | 2022-01-05 00:13:29 +0800 |
commit | 9e64df6a96685afcfbc7295beda38739868a6871 (patch) | |
tree | 091e643fe90da2e6bf5eb5a198ca8a8ca59c2ce2 /stream.go | |
parent | e37e060d6f97274c1e967cea40609623493bce25 (diff) |
Update create style example, using a pointer of the structure instead of JSON
Diffstat (limited to 'stream.go')
-rw-r--r-- | stream.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) // } |