Building a Simple REST API in Go With Gorilla/Mux | by Carlos Armando Marcano Vargas | Mar, 2022

Photo by Roman Synkevych 🇺🇦 on Unsplash
------groceriesAPI
|---grocery.go
|---handler.go
|---main.go
go get -u github.com/gorilla/mux
package main

type Grocery struct {

Name string `json: "name"`
Quantity int `json: "quantity"`
}

Resources

Leave a Comment