Skip to content

Commit d2c49ce

Browse files
authored
Update go-tips.cn.md
1 parent be214ec commit d2c49ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

go-tips.cn.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ jsoniter.UnmarshalFromString(`[]`, &val)
176176

177177
# 使用 MarshalJSON支持time.Time
178178

179-
golang 是默认不支持 time.Time 序列化成 JSON 的。如果要支持,可以自定义 time.Time 类型
179+
golang 默认会把 time.Time 用字符串方式序列化。如果我们想用其他方式表示 time.Time,需要自定义类型并定义 MarshalJSON。
180180

181181

182182
```golang

0 commit comments

Comments
 (0)