fix: import sse
This commit is contained in:
@@ -1,18 +1,9 @@
|
|||||||
# Gin Web Framework
|
# Gin Web Framework
|
||||||
|
|
||||||
<img align="right" width="159px" src="https://raw.githubusercontent.com/gin-gonic/logo/master/color.png">
|
|
||||||
|
|
||||||
[](https://github.com/gin-gonic/gin/actions?query=branch%3Amaster)
|
|
||||||
[](https://codecov.io/gh/gin-gonic/gin)
|
|
||||||
[](https://goreportcard.com/report/github.com/gin-gonic/gin)
|
|
||||||
[](https://pkg.go.dev/github.com/gin-gonic/gin?tab=doc)
|
|
||||||
[](https://sourcegraph.com/github.com/gin-gonic/gin?badge)
|
|
||||||
[](https://www.codetriage.com/gin-gonic/gin)
|
|
||||||
[](https://github.com/gin-gonic/gin/releases)
|
|
||||||
[](https://www.tickgit.com/browse?repo=github.com/gin-gonic/gin)
|
|
||||||
|
|
||||||
Gin is a web framework written in [Go](https://go.dev/). It features a martini-like API with performance that is up to 40 times faster thanks to [httprouter](https://github.com/julienschmidt/httprouter). If you need performance and good productivity, you will love Gin.
|
Gin is a web framework written in [Go](https://go.dev/). It features a martini-like API with performance that is up to 40 times faster thanks to [httprouter](https://github.com/julienschmidt/httprouter). If you need performance and good productivity, you will love Gin.
|
||||||
|
|
||||||
|
Copied from [gin-gonic/gin](https://github.com/gin-gonic/gin)
|
||||||
|
|
||||||
**The key features of Gin are:**
|
**The key features of Gin are:**
|
||||||
|
|
||||||
- Zero allocation router
|
- Zero allocation router
|
||||||
|
|||||||
+1
-1
@@ -21,7 +21,7 @@ import (
|
|||||||
|
|
||||||
"git.company.lan/gopkg/gin/binding"
|
"git.company.lan/gopkg/gin/binding"
|
||||||
"git.company.lan/gopkg/gin/render"
|
"git.company.lan/gopkg/gin/render"
|
||||||
"github.com/gin-contrib/sse"
|
"git.company.lan/gopkg/gin-sse"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Content-Type MIME of the most common data formats.
|
// Content-Type MIME of the most common data formats.
|
||||||
|
|||||||
+1
-1
@@ -25,7 +25,7 @@ import (
|
|||||||
|
|
||||||
"git.company.lan/gopkg/gin/binding"
|
"git.company.lan/gopkg/gin/binding"
|
||||||
testdata "git.company.lan/gopkg/gin/testdata/protoexample"
|
testdata "git.company.lan/gopkg/gin/testdata/protoexample"
|
||||||
"github.com/gin-contrib/sse"
|
"git.company.lan/gopkg/gin-sse"
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"google.golang.org/protobuf/proto"
|
"google.golang.org/protobuf/proto"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -3,8 +3,8 @@ module git.company.lan/gopkg/gin
|
|||||||
go 1.20
|
go 1.20
|
||||||
|
|
||||||
require (
|
require (
|
||||||
|
git.company.lan/gopkg/gin-sse v0.0.0-20241025130024-44e95010056c
|
||||||
github.com/bytedance/sonic v1.11.0
|
github.com/bytedance/sonic v1.11.0
|
||||||
github.com/gin-contrib/sse v0.1.0
|
|
||||||
github.com/go-playground/validator/v10 v10.18.0
|
github.com/go-playground/validator/v10 v10.18.0
|
||||||
github.com/goccy/go-json v0.10.2
|
github.com/goccy/go-json v0.10.2
|
||||||
github.com/json-iterator/go v1.1.12
|
github.com/json-iterator/go v1.1.12
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
git.company.lan/gopkg/gin-sse v0.0.0-20241025130024-44e95010056c h1:IPwy4JGXeg1GlmEOpI9zKO5bY4H30FgiRIBmdAAeMtg=
|
||||||
|
git.company.lan/gopkg/gin-sse v0.0.0-20241025130024-44e95010056c/go.mod h1:gFZByKS8tSkGnWwEPkU2UC9B9ltiPXO3GcwIqEFYgyU=
|
||||||
github.com/bytedance/sonic v1.5.0/go.mod h1:ED5hyg4y6t3/9Ku1R6dU/4KyJ48DZ4jPhfY1O2AihPM=
|
github.com/bytedance/sonic v1.5.0/go.mod h1:ED5hyg4y6t3/9Ku1R6dU/4KyJ48DZ4jPhfY1O2AihPM=
|
||||||
github.com/bytedance/sonic v1.10.0-rc/go.mod h1:ElCzW+ufi8qKqNW0FY314xriJhyJhuoJ3gFZdAHF7NM=
|
github.com/bytedance/sonic v1.10.0-rc/go.mod h1:ElCzW+ufi8qKqNW0FY314xriJhyJhuoJ3gFZdAHF7NM=
|
||||||
github.com/bytedance/sonic v1.11.0 h1:FwNNv6Vu4z2Onf1++LNzxB/QhitD8wuTdpZzMTGITWo=
|
github.com/bytedance/sonic v1.11.0 h1:FwNNv6Vu4z2Onf1++LNzxB/QhitD8wuTdpZzMTGITWo=
|
||||||
@@ -14,8 +16,6 @@ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c
|
|||||||
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
||||||
github.com/gabriel-vasile/mimetype v1.4.3 h1:in2uUcidCuFcDKtdcBxlR0rJ1+fsokWf+uqxgUFjbI0=
|
github.com/gabriel-vasile/mimetype v1.4.3 h1:in2uUcidCuFcDKtdcBxlR0rJ1+fsokWf+uqxgUFjbI0=
|
||||||
github.com/gabriel-vasile/mimetype v1.4.3/go.mod h1:d8uq/6HKRL6CGdk+aubisF/M5GcPfT7nKyLpA0lbSSk=
|
github.com/gabriel-vasile/mimetype v1.4.3/go.mod h1:d8uq/6HKRL6CGdk+aubisF/M5GcPfT7nKyLpA0lbSSk=
|
||||||
github.com/gin-contrib/sse v0.1.0 h1:Y/yl/+YNO8GZSjAhjMsSuLt29uWRFHdHYUb5lYOV9qE=
|
|
||||||
github.com/gin-contrib/sse v0.1.0/go.mod h1:RHrZQHXnP2xjPF+u1gW/2HnVO7nvIa9PG3Gm+fLHvGI=
|
|
||||||
github.com/go-playground/assert/v2 v2.2.0 h1:JvknZsQTYeFEAhQwI4qEt9cyV5ONwRHC+lYKSsYSR8s=
|
github.com/go-playground/assert/v2 v2.2.0 h1:JvknZsQTYeFEAhQwI4qEt9cyV5ONwRHC+lYKSsYSR8s=
|
||||||
github.com/go-playground/locales v0.14.1 h1:EWaQ/wswjilfKLTECiXz7Rh+3BjFhfDFKv/oXslEjJA=
|
github.com/go-playground/locales v0.14.1 h1:EWaQ/wswjilfKLTECiXz7Rh+3BjFhfDFKv/oXslEjJA=
|
||||||
github.com/go-playground/locales v0.14.1/go.mod h1:hxrqLVvrK65+Rwrd5Fc6F2O76J/NuW9t0sjnWqG1slY=
|
github.com/go-playground/locales v0.14.1/go.mod h1:hxrqLVvrK65+Rwrd5Fc6F2O76J/NuW9t0sjnWqG1slY=
|
||||||
|
|||||||
+1
-1
@@ -10,7 +10,7 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/gin-contrib/sse"
|
"git.company.lan/gopkg/gin-sse"
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user