feat: support for gzip middleware (#53)

This commit is contained in:
Josef Hák
2019-04-03 04:59:18 +02:00
committed by Eason Lin
parent 9668210ca1
commit dbf6ef4100
10 changed files with 87 additions and 10 deletions
+27
View File
@@ -0,0 +1,27 @@
package web
// @hello
// yo yo yo yo
type Pet struct {
ID int `json:"id"`
Category struct {
ID int `json:"id"`
Name string `json:"name"`
} `json:"category"`
Name string `json:"name"`
PhotoUrls []string `json:"photoUrls"`
Tags []struct {
ID int `json:"id"`
Name string `json:"name"`
} `json:"tags"`
Status string `json:"status"`
}
type Pet2 struct {
ID int `json:"id"`
}
type APIError struct {
ErrorCode int
ErrorMessage string
}