summaryrefslogtreecommitdiff
path: root/stream.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2022-01-05 00:13:29 +0800
committerxuri <xuri.me@gmail.com>2022-01-05 00:13:29 +0800
commit9e64df6a96685afcfbc7295beda38739868a6871 (patch)
tree091e643fe90da2e6bf5eb5a198ca8a8ca59c2ce2 /stream.go
parente37e060d6f97274c1e967cea40609623493bce25 (diff)
Update create style example, using a pointer of the structure instead of JSON
Diffstat (limited to 'stream.go')
-rw-r--r--stream.go2
1 files changed, 1 insertions, 1 deletions
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)
// }