Created
March 9, 2016 21:10
-
-
Save bcomnes/2a873252434f216e7b83 to your computer and use it in GitHub Desktop.
go json parsing pattern
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 12:41 <schmichael> bret: this is a shortcut for creating one-off types for unmarshalling json: x := struct{Foo string `json:"foo"`}{}; json.Unmarshal(data, &x) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment