Documentation ¶ Index ¶ func NewPetstore() (http.Handler, error) type Pet type Tag Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func NewPetstore ¶ func NewPetstore() (http.Handler, error) NewPetstore creates a new petstore api handler Types ¶ type Pet ¶ type Pet struct { ID int64 `json:"id"` Name string `json:"name"` PhotoURLs []string `json:"photoUrls,omitempty"` Status string `json:"status,omitempty"` Tags []Tag `json:"tags,omitempty"` } Pet the pet model type Tag ¶ type Tag struct { ID int64 Name string } Tag the tag model Source Files ¶ View all Source files api.go Click to show internal directories. Click to hide internal directories.