diff --git a/examples/json/json.go b/examples/json/json.go index aaf4bac..8d443bd 100644 --- a/examples/json/json.go +++ b/examples/json/json.go @@ -14,7 +14,8 @@ type response1 struct { Page int Fruits []string } -// Only exported fields will be encoded/decoded in JSON. + +// Only exported fields will be encoded/decoded in JSON. // Fields must start with capital letters to be exported. type response2 struct { Page int `json:"page"` diff --git a/examples/json/json.hash b/examples/json/json.hash index 3acb1f6..0c3c3a1 100644 --- a/examples/json/json.hash +++ b/examples/json/json.hash @@ -1,2 +1,2 @@ -d4dc2281f64061f077d8f1e9687538f41a339b25 -xC6SHbzGBZC +6b92694b7be60cdec3e7a04e9fdbf49d5c84adb1 +63PdbTHxKJA diff --git a/public/json b/public/json index 1cc92b7..a0d6395 100644 --- a/public/json +++ b/public/json @@ -43,7 +43,7 @@ data types.
package main
Only exported fields will be encoded/decoded in JSON. +Fields must start with capital letters to be exported.
+ +type response2 struct {
Page int `json:"page"`
Fruits []string `json:"fruits"`
}
@@ -401,7 +414,7 @@ for more.