Go
package main import ( "net/http" "encoding/json" "fmt" ) type Item struct { Id int `json:"id"` Name string `json:"name"` } type Items []Item func itemList(w http.ResponseWriter, r *http.Request) { items := Items{} items = append(items, Ite…
package main import ( "net/http" "encoding/json" "fmt" ) type Item struct { Id int `json:"id"` Name string `json:"name"` } type Items []Item func itemList(w http.ResponseWriter, r *http.Request) { items := Items{} items = append(items, Ite…