Created
July 18, 2018 17:04
-
-
Save s1s1ty/436b2e5f5de2fba93081269d262b8f33 to your computer and use it in GitHub Desktop.
model
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 Post struct { | |
ID int `json: "id"` | |
Title string `json: "title"` | |
Content string `json: "content"` | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
JFYI: there is a bug -- there should be no space after json keyword, otherwise it's being ignored.