Skip to content

Instantly share code, notes, and snippets.

@Duncanian
Last active September 24, 2019 09:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Duncanian/9eb9d92bf6c1fada86011d18c7b8492f to your computer and use it in GitHub Desktop.
Save Duncanian/9eb9d92bf6c1fada86011d18c7b8492f to your computer and use it in GitHub Desktop.
This is the dummy go-rest-api database
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