Skip to content

Instantly share code, notes, and snippets.

@rodrwan
Last active August 28, 2018 20:57
Show Gist options
  • Save rodrwan/20855b42c21cd90d9fc03df5d56aa49a to your computer and use it in GitHub Desktop.
Save rodrwan/20855b42c21cd90d9fc03df5d56aa49a to your computer and use it in GitHub Desktop.
// Address hold adderss information returned by AddressStore
type Address struct {
UserID string `json:"user_id,omitempty" db:"user_id"`
AddressLine string `json:"address_line,omitempty" db:"address_line"`
City string `json:"city,omitempty" db:"city"`
Locality string `json:"locality,omitempty" db:"locality"`
AdministrativeAreaLevel1 string `json:"administrative_area_level_1,omitempty" db:"administrative_area_level_1"`
Country string `json:"country,omitempty" db:"country"`
PostalCode int `json:"postal_code,omitempty" db:"postal_code"`
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment