Created
December 29, 2019 20:17
-
-
Save JNaeemGitonga/622fe484fe00cb101f52547528f07bef to your computer and use it in GitHub Desktop.
Story struct
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 Story struct { | |
ID primitive.ObjectID `json:"_id,omitempty" bson:"_id,omitempty"` | |
Author string `json:"author,,omitempty" bson:"author,,omitempty"` | |
Title string `json:"title,,omitempty" bson:"title,,omitempty"` | |
Content string `json:"content,,omitempty" bson:"content,,omitempty"` | |
Likes int `json:"likes,,omitempty" bson:"likes,,omitempty"` | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment