diff --git a/examples/json/json.go b/examples/json/json.go index 6a1f56d..101a1cb 100644 --- a/examples/json/json.go +++ b/examples/json/json.go @@ -14,6 +14,8 @@ type response1 struct { Page int Fruits []string } +// Fields must have capital letters to be exposed to other +// programs such as the JSON Marshaller. type response2 struct { Page int `json:"page"` Fruits []string `json:"fruits"`