File tree Expand file tree Collapse file tree 3 files changed +1
-6
lines changed
Expand file tree Collapse file tree 3 files changed +1
-6
lines changed Original file line number Diff line number Diff line change 44 "log"
55 "time"
66
7- "github.com/gorilla/schema"
87 "github.com/valyala/fasthttp"
98 "github.com/zerodha/fastglue"
109)
@@ -22,13 +21,12 @@ type App struct {
2221var (
2322 TokenExc fastglue.ErrorType = "TokenException"
2423 InputExc fastglue.ErrorType = "InputException"
25- decoder * schema.Decoder
2624)
2725
2826// Person is a JSON data payload we'll accept.
2927type Person struct {
3028 Name * string `json:"name" required:"true"`
31- Age * int `json:"age" required:"true" schema:"age,required" `
29+ Age * int `json:"age" required:"true" `
3230 Comment string `json:"comment"`
3331 Version string `json:"version"`
3432}
Original file line number Diff line number Diff line change 44
55require (
66 github.com/fasthttp/router v1.4.5
7- github.com/gorilla/schema v1.1.0
87 github.com/stretchr/testify v1.6.0
98 github.com/valyala/fasthttp v1.34.0
109)
Original file line number Diff line number Diff line change @@ -7,8 +7,6 @@ github.com/fasthttp/router v1.4.5 h1:YZonsKCssEwEi3veDMhL6okIx550qegAiuXAK8NnM3Y
77github.com/fasthttp/router v1.4.5 /go.mod h1:UYExWhCy7pUmavRZ0XfjEgHwzxyKwyS8uzXhaTRDG9Y =
88github.com/golang/snappy v0.0.3 /go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q =
99github.com/google/uuid v1.3.0 /go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo =
10- github.com/gorilla/schema v1.1.0 h1:CamqUDOFUBqzrvxuz2vEwo8+SUdwsluFh7IlzJh30LY =
11- github.com/gorilla/schema v1.1.0 /go.mod h1:kgLaKoK1FELgZqMAVxx/5cbj0kT+57qxUrAlIO2eleU =
1210github.com/klauspost/compress v1.13.4 /go.mod h1:8dP1Hq4DHOhN9w426knH3Rhby4rFm6D8eO+e+Dq5Gzg =
1311github.com/klauspost/compress v1.15.0 h1:xqfchp4whNFxn5A4XFyyYtitiWI8Hy5EW59jEwcyL6U =
1412github.com/klauspost/compress v1.15.0 /go.mod h1:/3/Vjq9QcHkK5uEr5lBEmyoZ1iFhe47etQ6QUkpK6sk =
You can’t perform that action at this time.
0 commit comments