Skip to content

Commit c340567

Browse files
authored
Merge pull request #11 from zerodha/chore-remove-gorilla-schema
chore: remove unused gorilla schema dep
2 parents a53501f + 91fb74c commit c340567

File tree

3 files changed

+1
-6
lines changed

3 files changed

+1
-6
lines changed

examples/example.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import (
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 {
2221
var (
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.
2927
type 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
}

go.mod

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ go 1.14
44

55
require (
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
)

go.sum

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ github.com/fasthttp/router v1.4.5 h1:YZonsKCssEwEi3veDMhL6okIx550qegAiuXAK8NnM3Y
77
github.com/fasthttp/router v1.4.5/go.mod h1:UYExWhCy7pUmavRZ0XfjEgHwzxyKwyS8uzXhaTRDG9Y=
88
github.com/golang/snappy v0.0.3/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q=
99
github.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=
1210
github.com/klauspost/compress v1.13.4/go.mod h1:8dP1Hq4DHOhN9w426knH3Rhby4rFm6D8eO+e+Dq5Gzg=
1311
github.com/klauspost/compress v1.15.0 h1:xqfchp4whNFxn5A4XFyyYtitiWI8Hy5EW59jEwcyL6U=
1412
github.com/klauspost/compress v1.15.0/go.mod h1:/3/Vjq9QcHkK5uEr5lBEmyoZ1iFhe47etQ6QUkpK6sk=

0 commit comments

Comments
 (0)