Skip to content

Commit

Permalink
Merge pull request #11 from zerodha/chore-remove-gorilla-schema
Browse files Browse the repository at this point in the history
chore: remove unused gorilla schema dep
  • Loading branch information
knadh authored Jul 2, 2024
2 parents a53501f + 91fb74c commit c340567
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 c340567

Please sign in to comment.