diff --git a/binding/form_mapping.go b/binding/form_mapping.go index 235692d2..79830076 100644 --- a/binding/form_mapping.go +++ b/binding/form_mapping.go @@ -13,8 +13,8 @@ import ( "strings" "time" + "github.com/gin-gonic/gin/codec/json" "github.com/gin-gonic/gin/internal/bytesconv" - "github.com/gin-gonic/gin/internal/json" ) var ( diff --git a/binding/json.go b/binding/json.go index e21c2ee3..f85fc1a2 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/gin-gonic/gin/codec/json" ) // EnableDecoderUseNumber is used to call the UseNumber method on the JSON diff --git a/internal/json/go_json.go b/codec/json/go_json.go similarity index 100% rename from internal/json/go_json.go rename to codec/json/go_json.go diff --git a/internal/json/json.go b/codec/json/json.go similarity index 100% rename from internal/json/json.go rename to codec/json/json.go diff --git a/internal/json/jsoniter.go b/codec/json/jsoniter.go similarity index 100% rename from internal/json/jsoniter.go rename to codec/json/jsoniter.go diff --git a/internal/json/sonic.go b/codec/json/sonic.go similarity index 100% rename from internal/json/sonic.go rename to codec/json/sonic.go diff --git a/errors.go b/errors.go index b0d70a94..af8615b3 100644 --- a/errors.go +++ b/errors.go @@ -9,7 +9,7 @@ import ( "reflect" "strings" - "github.com/gin-gonic/gin/internal/json" + "github.com/gin-gonic/gin/codec/json" ) // ErrorType is an unsigned 64-bit error code as defined in the gin spec. diff --git a/errors_test.go b/errors_test.go index 91ae9c92..37878438 100644 --- a/errors_test.go +++ b/errors_test.go @@ -9,7 +9,7 @@ import ( "fmt" "testing" - "github.com/gin-gonic/gin/internal/json" + "github.com/gin-gonic/gin/codec/json" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/render/json.go b/render/json.go index 23923c44..fe1b21d2 100644 --- a/render/json.go +++ b/render/json.go @@ -11,8 +11,8 @@ import ( "net/http" "unicode" + "github.com/gin-gonic/gin/codec/json" "github.com/gin-gonic/gin/internal/bytesconv" - "github.com/gin-gonic/gin/internal/json" ) // JSON contains the given interface object.