Skip to content

Instantly share code, notes, and snippets.

@VictorKabata
Created October 29, 2022 13:40
Show Gist options
  • Save VictorKabata/098ee5ced9900b3bec0d9d39f370c542 to your computer and use it in GitHub Desktop.
Save VictorKabata/098ee5ced9900b3bec0d9d39f370c542 to your computer and use it in GitHub Desktop.
type Note struct {
ID int `json: "id"`
Title string `json: "title"`
Description string `json: "description"`
Created_At string `json: "created_at"`
}
/**Mock database*/
var notes = []Note{
{1, "Title 1", "Description 1", time.Now().UTC().String()},
{2, "Title 2", "Description 2", time.Now().UTC().String()},
{3, "Title 3", "Description 3", time.Now().UTC().String()},
}
func main() {
fmt.Println("Starting graphql server...")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment