Skip to content

Commit

Permalink
chore: remove unused gorilla schema dep
Browse files Browse the repository at this point in the history
  • Loading branch information
rhnvrm committed Jul 2, 2024
1 parent a53501f commit 91fb74c
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 6 deletions.
4 changes: 1 addition & 3 deletions examples/example.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"log"
"time"

"github.com/gorilla/schema"
"github.com/valyala/fasthttp"
"github.com/zerodha/fastglue"
)
Expand All @@ -22,13 +21,12 @@ type App struct {
var (
TokenExc fastglue.ErrorType = "TokenException"
InputExc fastglue.ErrorType = "InputException"
decoder *schema.Decoder
)

// Person is a JSON data payload we'll accept.
type Person struct {
Name *string `json:"name" required:"true"`
Age *int `json:"age" required:"true" schema:"age,required"`
Age *int `json:"age" required:"true" `
Comment string `json:"comment"`
Version string `json:"version"`
}
Expand Down
1 change: 0 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ go 1.14

require (
github.com/fasthttp/router v1.4.5
github.com/gorilla/schema v1.1.0
github.com/stretchr/testify v1.6.0
github.com/valyala/fasthttp v1.34.0
)
2 changes: 0 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ github.com/fasthttp/router v1.4.5 h1:YZonsKCssEwEi3veDMhL6okIx550qegAiuXAK8NnM3Y
github.com/fasthttp/router v1.4.5/go.mod h1:UYExWhCy7pUmavRZ0XfjEgHwzxyKwyS8uzXhaTRDG9Y=
github.com/golang/snappy v0.0.3/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q=
github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
github.com/gorilla/schema v1.1.0 h1:CamqUDOFUBqzrvxuz2vEwo8+SUdwsluFh7IlzJh30LY=
github.com/gorilla/schema v1.1.0/go.mod h1:kgLaKoK1FELgZqMAVxx/5cbj0kT+57qxUrAlIO2eleU=
github.com/klauspost/compress v1.13.4/go.mod h1:8dP1Hq4DHOhN9w426knH3Rhby4rFm6D8eO+e+Dq5Gzg=
github.com/klauspost/compress v1.15.0 h1:xqfchp4whNFxn5A4XFyyYtitiWI8Hy5EW59jEwcyL6U=
github.com/klauspost/compress v1.15.0/go.mod h1:/3/Vjq9QcHkK5uEr5lBEmyoZ1iFhe47etQ6QUkpK6sk=
Expand Down

0 comments on commit 91fb74c

Please sign in to comment.