Skip to content

Commit

Permalink
Minimal solution.
Browse files Browse the repository at this point in the history
  • Loading branch information
TomOnTime committed Mar 19, 2018
1 parent e1e20af commit f0a587f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jsondemo2/minimal.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func main() {
fmt.Printf(" got=%v\n", string(out))
fmt.Println(` expected={"visible":1,"invisible":2,"epoch":1521492409}`)

// Demonstration of how to unmarshal: Unmarshal "out" ([]byte) to n (struct)
// Demonstration of how to unmarshal: Unmarshal out ([]byte) to n (struct)
fmt.Printf("JSON to struct:\n")
var n = &Cranberry{}
err = json.Unmarshal(out, n)
Expand Down

0 comments on commit f0a587f

Please sign in to comment.