Skip to content

Commit 43cd20e

Browse files
authored
Update go-tips.cn.md
1 parent 5a6ab69 commit 43cd20e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

go-tips.cn.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ title: Go JSON 使用小技巧
99
有的时候上游传过来的字段是string类型的,但是我们却想用变成数字来使用。
1010
本来用一个`json:",string"` 就可以支持了,如果不知道golang的这些小技巧,就要大费周章了。
1111

12+
参考文章:http://attilaolah.eu/2014/09/10/json-and-struct-composition-in-go/
13+
1214
# 临时忽略struct字段
1315
# 临时粘合两个struct
1416
# 一个json切分成两个struct

0 commit comments

Comments
 (0)