Created
March 2, 2019 20:14
-
-
Save rodrwan/f67c327db32535e7006119684e2c93ef to your computer and use it in GitHub Desktop.
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
package mediumexample | |
import "time" | |
// Address hold address 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"` | |
Region string `json:"region,omitempty" db:"region"` | |
Country string `json:"country,omitempty" db:"country"` | |
PostalCode int `json:"postal_code,omitempty" db:"postal_code"` | |
CreatedAt time.Time `json:"created_at" db:"created_at"` | |
UpdatedAt time.Time `json:"updated_at" db:"updated_at"` | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment