Skip to content

Instantly share code, notes, and snippets.

@bcomnes
Created March 9, 2016 21:10
Show Gist options
  • Select an option

  • Save bcomnes/2a873252434f216e7b83 to your computer and use it in GitHub Desktop.

Select an option

Save bcomnes/2a873252434f216e7b83 to your computer and use it in GitHub Desktop.
go json parsing pattern
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