Update export explanation
This commit is contained in:
parent
f1a6a94afd
commit
99218c520a
@ -14,8 +14,8 @@ type response1 struct {
|
|||||||
Page int
|
Page int
|
||||||
Fruits []string
|
Fruits []string
|
||||||
}
|
}
|
||||||
// Fields must have capital letters to be exposed to other
|
// Only exported fields will be encoded/decoded in JSON.
|
||||||
// programs such as the JSON Marshaller.
|
// Fields must start with capital letters to be exported.
|
||||||
type response2 struct {
|
type response2 struct {
|
||||||
Page int `json:"page"`
|
Page int `json:"page"`
|
||||||
Fruits []string `json:"fruits"`
|
Fruits []string `json:"fruits"`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user