Created
April 21, 2017 08:20
-
-
Save zmalltalker/0ae4bd855e963c62758bd13ecca8aa2e to your computer and use it in GitHub Desktop.
This file contains 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
type User struct { | |
CreatedAt time.Time `json:"created_at,string"` | |
UpdatedAt time.Time `json:"updated_at,string"` | |
FirstName string `json:"first_name,string"` | |
LastName string `json:"last_name,string"` | |
} | |
data = "{…json…}" | |
var u User | |
err := json.Unmarshal(data, &u) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment