diff --git a/auth.go b/auth.go index 4d8a6ce4..740a5a68 100644 --- a/auth.go +++ b/auth.go @@ -10,7 +10,7 @@ import ( "net/http" "strconv" - "github.com/gin-gonic/gin/internal/bytesconv" + "github.com/RadiumByte/gin/internal/bytesconv" ) // AuthUserKey is the cookie name for user credential in basic auth. diff --git a/binding/form_mapping.go b/binding/form_mapping.go index 2f4e45b4..4c7a7177 100644 --- a/binding/form_mapping.go +++ b/binding/form_mapping.go @@ -12,8 +12,8 @@ import ( "strings" "time" - "github.com/gin-gonic/gin/internal/bytesconv" - "github.com/gin-gonic/gin/internal/json" + "github.com/RadiumByte/gin/internal/bytesconv" + "github.com/RadiumByte/gin/internal/json" ) var errUnknownType = errors.New("unknown type") diff --git a/binding/json.go b/binding/json.go index b2b92b14..d1824ee8 100644 --- a/binding/json.go +++ b/binding/json.go @@ -10,7 +10,7 @@ import ( "io" "net/http" - "github.com/gin-gonic/gin/internal/json" + "github.com/RadiumByte/gin/internal/json" ) // EnableDecoderUseNumber is used to call the UseNumber method on the JSON diff --git a/context.go b/context.go index 3d6b56d6..b4567b2d 100644 --- a/context.go +++ b/context.go @@ -19,9 +19,9 @@ import ( "sync" "time" + "github.com/RadiumByte/gin/binding" + "github.com/RadiumByte/gin/render" "github.com/gin-contrib/sse" - "github.com/gin-gonic/gin/binding" - "github.com/gin-gonic/gin/render" ) // Content-Type MIME of the most common data formats. @@ -37,7 +37,7 @@ const ( ) // BodyBytesKey indicates a default body bytes key. -const BodyBytesKey = "_gin-gonic/gin/bodybyteskey" +const BodyBytesKey = "_RadiumByte/gin/bodybyteskey" const abortIndex int8 = math.MaxInt8 / 2 diff --git a/deprecated.go b/deprecated.go index ab447429..cb7fa7d6 100644 --- a/deprecated.go +++ b/deprecated.go @@ -7,7 +7,7 @@ package gin import ( "log" - "github.com/gin-gonic/gin/binding" + "github.com/RadiumByte/gin/binding" ) // BindWith binds the passed struct pointer using the specified binding engine. diff --git a/errors.go b/errors.go index 0f276c13..116fec81 100644 --- a/errors.go +++ b/errors.go @@ -9,7 +9,7 @@ import ( "reflect" "strings" - "github.com/gin-gonic/gin/internal/json" + "github.com/RadiumByte/gin/internal/json" ) // ErrorType is an unsigned 64-bit error code as defined in the gin spec. diff --git a/gin.go b/gin.go index 1e126179..936b3e80 100644 --- a/gin.go +++ b/gin.go @@ -13,8 +13,8 @@ import ( "path" "sync" - "github.com/gin-gonic/gin/internal/bytesconv" - "github.com/gin-gonic/gin/render" + "github.com/RadiumByte/gin/internal/bytesconv" + "github.com/RadiumByte/gin/render" ) const defaultMultipartMemory = 32 << 20 // 32 MB diff --git a/ginS/gins.go b/ginS/gins.go index 3080fd34..2ef4cf2b 100644 --- a/ginS/gins.go +++ b/ginS/gins.go @@ -9,7 +9,7 @@ import ( "net/http" "sync" - "github.com/gin-gonic/gin" + "github.com/RadiumByte/gin" ) var once sync.Once diff --git a/go.mod b/go.mod index e6f5948e..4945e2ea 100644 --- a/go.mod +++ b/go.mod @@ -4,6 +4,7 @@ go 1.13 require ( github.com/gin-contrib/sse v0.1.0 + github.com/RadiumByte/gin v1.6.3 github.com/go-playground/validator/v10 v10.4.1 github.com/golang/protobuf v1.3.3 github.com/json-iterator/go v1.1.9 diff --git a/go.sum b/go.sum index a64b3319..f33fd363 100644 --- a/go.sum +++ b/go.sum @@ -9,6 +9,7 @@ github.com/go-playground/locales v0.13.0 h1:HyWk6mgj5qFqCT5fjGBuRArbVDfE4hi8+e8c github.com/go-playground/locales v0.13.0/go.mod h1:taPMhCMXrRLJO55olJkUXHZBHCxTMfnGwq/HNwmWNS8= github.com/go-playground/universal-translator v0.17.0 h1:icxd5fm+REJzpZx7ZfpaD876Lmtgy7VtROAbHHXk8no= github.com/go-playground/universal-translator v0.17.0/go.mod h1:UkSxE5sNxxRwHyU+Scu5vgOQjsIJAF8j9muTVoKLVtA= +github.com/go-playground/validator/v10 v10.2.0/go.mod h1:uOYAAleCW8F/7oMFd6aG0GOhaH6EGOAJShg8Id5JGkI= github.com/go-playground/validator/v10 v10.4.1 h1:pH2c5ADXtd66mxoE0Zm9SUhxE20r7aM3F26W0hOn+GE= github.com/go-playground/validator/v10 v10.4.1/go.mod h1:nlOn6nFhuKACm19sB/8EGNn9GlaMV7XkbRSipzJ0Ii4= github.com/golang/protobuf v1.3.3 h1:gyjaxf+svBWX08ZjK86iN9geUJF0H6gp2IRKX6Nf6/I= diff --git a/mode.go b/mode.go index c8813aff..58d2950e 100644 --- a/mode.go +++ b/mode.go @@ -8,7 +8,7 @@ import ( "io" "os" - "github.com/gin-gonic/gin/binding" + "github.com/RadiumByte/gin/binding" ) // EnvGinMode indicates environment name for gin mode. diff --git a/render/json.go b/render/json.go index 41863093..47c55c5b 100644 --- a/render/json.go +++ b/render/json.go @@ -10,8 +10,8 @@ import ( "html/template" "net/http" - "github.com/gin-gonic/gin/internal/bytesconv" - "github.com/gin-gonic/gin/internal/json" + "github.com/RadiumByte/gin/internal/bytesconv" + "github.com/RadiumByte/gin/internal/json" ) // JSON contains the given interface object. diff --git a/render/text.go b/render/text.go index 461b720a..f81cf881 100644 --- a/render/text.go +++ b/render/text.go @@ -8,7 +8,7 @@ import ( "fmt" "net/http" - "github.com/gin-gonic/gin/internal/bytesconv" + "github.com/RadiumByte/gin/internal/bytesconv" ) // String contains the given interface object slice and its format. diff --git a/tree.go b/tree.go index 74e07e84..e9be4f21 100644 --- a/tree.go +++ b/tree.go @@ -11,7 +11,7 @@ import ( "unicode" "unicode/utf8" - "github.com/gin-gonic/gin/internal/bytesconv" + "github.com/RadiumByte/gin/internal/bytesconv" ) var ( diff --git a/utils.go b/utils.go index c32f0eeb..2e9c1820 100644 --- a/utils.go +++ b/utils.go @@ -15,7 +15,7 @@ import ( ) // BindKey indicates a default bind key. -const BindKey = "_gin-gonic/gin/bindkey" +const BindKey = "_RadiumByte/gin/bindkey" // Bind is a helper function for given interface object and returns a Gin middleware. func Bind(val interface{}) HandlerFunc {