mirror of
https://github.com/unknwon/the-way-to-go_ZH_CN.git
synced 2025-08-12 03:06:41 +08:00
Update 12.9.md (#662)
This commit is contained in:
@@ -104,9 +104,9 @@ func main() {
|
||||
|
||||
JSON 与 Go 类型对应如下:
|
||||
|
||||
- bool 对应 JSON 的 booleans
|
||||
- float64 对应 JSON 的 numbers
|
||||
- string 对应 JSON 的 strings
|
||||
- bool 对应 JSON 的 boolean
|
||||
- float64 对应 JSON 的 number
|
||||
- string 对应 JSON 的 string
|
||||
- nil 对应 JSON 的 null
|
||||
|
||||
不是所有的数据都可以编码为 JSON 类型:只有验证通过的数据结构才能被编码:
|
||||
|
Reference in New Issue
Block a user