From 91fb74c01f4e4b8cffd24d4107ec3753171b505a Mon Sep 17 00:00:00 2001 From: Rohan Verma Date: Tue, 2 Jul 2024 11:34:41 +0530 Subject: [PATCH] chore: remove unused gorilla schema dep --- examples/example.go | 4 +--- go.mod | 1 - go.sum | 2 -- 3 files changed, 1 insertion(+), 6 deletions(-) diff --git a/examples/example.go b/examples/example.go index 9149e12..5472461 100644 --- a/examples/example.go +++ b/examples/example.go @@ -4,7 +4,6 @@ import ( "log" "time" - "github.com/gorilla/schema" "github.com/valyala/fasthttp" "github.com/zerodha/fastglue" ) @@ -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"` } diff --git a/go.mod b/go.mod index 3f7302d..858bd2f 100644 --- a/go.mod +++ b/go.mod @@ -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 ) diff --git a/go.sum b/go.sum index 512246f..e337a74 100644 --- a/go.sum +++ b/go.sum @@ -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=