We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a6ab69 commit 43cd20eCopy full SHA for 43cd20e
go-tips.cn.md
@@ -9,6 +9,8 @@ title: Go JSON 使用小技巧
9
有的时候上游传过来的字段是string类型的,但是我们却想用变成数字来使用。
10
本来用一个`json:",string"` 就可以支持了,如果不知道golang的这些小技巧,就要大费周章了。
11
12
+参考文章:http://attilaolah.eu/2014/09/10/json-and-struct-composition-in-go/
13
+
14
# 临时忽略struct字段
15
# 临时粘合两个struct
16
# 一个json切分成两个struct
0 commit comments