From 2a51bab801f2b2bbc0bd3c2eba8bf34c80d2f0f2 Mon Sep 17 00:00:00 2001 From: buhuipao Date: Fri, 28 Jul 2017 05:10:43 +0800 Subject: [PATCH] Update 12.9.md (#391) --- eBook/12.9.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eBook/12.9.md b/eBook/12.9.md index 0f409f6..c9f65f0 100644 --- a/eBook/12.9.md +++ b/eBook/12.9.md @@ -133,7 +133,7 @@ json 包使用 `map[string]interface{}` 和 `[]interface{}` 储存任意的 JSON 来看这个 JSON 数据,被存储在变量 b 中: ```go -b == []byte({"Name": "Wednesday", "Age": 6, "Parents": ["Gomez", "Morticia"]}) +b := []byte(`{"Name": "Wednesday", "Age": 6, "Parents": ["Gomez", "Morticia"]}`) ``` 不用理解这个数据的结构,我们可以直接使用 Unmarshal 把这个数据编码并保存在接口值中: