Last active
September 24, 2019 09:51
-
-
Save Duncanian/9eb9d92bf6c1fada86011d18c7b8492f to your computer and use it in GitHub Desktop.
This is the dummy go-rest-api database
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 event struct { | |
ID string `json:"ID"` | |
Title string `json:"Title"` | |
Description string `json:"Description"` | |
} | |
type allEvents []event | |
var events = allEvents{ | |
{ | |
ID: "1", | |
Title: "Introduction to Golang", | |
Description: "Come join us for a chance to learn how golang works and get to eventually try it out", | |
}, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment