Created
October 29, 2022 13:40
-
-
Save VictorKabata/098ee5ced9900b3bec0d9d39f370c542 to your computer and use it in GitHub Desktop.
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 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