We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 507a99d commit e51944eCopy full SHA for e51944e
040_json/08_unmarshal_tags/main.go
@@ -7,14 +7,14 @@ import (
7
)
8
9
type city struct {
10
- Postal string `json:"Postal"`
11
- Latitude float64 `json:"Latitude"`
12
- Longitude float64 `json:"Longitude"`
13
- Address string `json:"Address"`
14
- City string `json:"City"`
15
- State string `json:"State"`
16
- Zip string `json:"Zip"`
17
- Country string `json:"Country"`
+ Bali string `json:"Postal"`
+ Kauai float64 `json:"Latitude"`
+ Maui float64 `json:"Longitude"`
+ Java string `json:"Address"`
+ NewZealand string `json:"City"`
+ Skye string `json:"State"`
+ Oahu string `json:"Zip"`
+ Hawaii string `json:"Country"`
18
}
19
20
type cities []city
0 commit comments