Skip to content

Instantly share code, notes, and snippets.

@a-h
Last active July 19, 2016 13:15
Show Gist options
  • Select an option

  • Save a-h/913d4089c8c92e4b9f1f7791ed520e2c to your computer and use it in GitHub Desktop.

Select an option

Save a-h/913d4089c8c92e4b9f1f7791ed520e2c to your computer and use it in GitHub Desktop.
Generate Output
package main
type Address struct {
County string `json:"county,omitempty"`
District string `json:"district,omitempty"`
FlatNumber string `json:"flatNumber,omitempty"`
HouseName string `json:"houseName,omitempty"`
HouseNumber string `json:"houseNumber,omitempty"`
Postcode string `json:"postcode,omitempty"`
Street string `json:"street,omitempty"`
Town string `json:"town,omitempty"`
}
type Example struct {
Address *Address `json:"address,omitempty"`
Name string `json:"name,omitempty"`
Status *Status `json:"status,omitempty"`
}
type Status struct {
Favouritecat string `json:"favouritecat,omitempty"`
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment