Showing the changes to example/basic/web (1 of 10 files). Show all
Unified · Split
| @@ -0,0 +1,27 @@ | |||
| 1 | package web | ||
| 2 | |||
| 3 | // @hello | ||
| 4 | // yo yo yo yo | ||
| 5 | type Pet struct { | ||
| 6 | ID int `json:"id"` | ||
| 7 | Category struct { | ||
| 8 | ID int `json:"id"` | ||
| 9 | Name string `json:"name"` | ||
| 10 | } `json:"category"` | ||
| 11 | Name string `json:"name"` | ||
| 12 | PhotoUrls []string `json:"photoUrls"` | ||
| 13 | Tags []struct { | ||
| 14 | ID int `json:"id"` | ||
| 15 | Name string `json:"name"` | ||
| 16 | } `json:"tags"` | ||
| 17 | Status string `json:"status"` | ||
| 18 | } | ||
| 19 | |||
| 20 | type Pet2 struct { | ||
| 21 | ID int `json:"id"` | ||
| 22 | } | ||
| 23 | |||
| 24 | type APIError struct { | ||
| 25 | ErrorCode int | ||
| 26 | ErrorMessage string | ||
| 27 | } | ||