History

feat: support for gzip middleware (#53)

Josef Hák committed 7 years ago

Commit dbf6ef41 parent 966821010 files · +87 −10Browse files

Showing the changes to example/basic/web (1 of 10 files). Show all

Unified · Split

example/basic/web/handler.go+27−0
@@ -0,0 +1,27 @@
1package web
2
3// @hello
4// yo yo yo yo
5type 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
20type Pet2 struct {
21 ID int `json:"id"`
22}
23
24type APIError struct {
25 ErrorCode int
26 ErrorMessage string
27}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t