diff --git a/README.md b/README.md index f771b53..5850ee9 100644 --- a/README.md +++ b/README.md @@ -1,18 +1,9 @@ # Gin Web Framework - - -[![Build Status](https://github.com/gin-gonic/gin/workflows/Run%20Tests/badge.svg?branch=master)](https://github.com/gin-gonic/gin/actions?query=branch%3Amaster) -[![codecov](https://codecov.io/gh/gin-gonic/gin/branch/master/graph/badge.svg)](https://codecov.io/gh/gin-gonic/gin) -[![Go Report Card](https://goreportcard.com/badge/github.com/gin-gonic/gin)](https://goreportcard.com/report/github.com/gin-gonic/gin) -[![GoDoc](https://pkg.go.dev/badge/github.com/gin-gonic/gin?status.svg)](https://pkg.go.dev/github.com/gin-gonic/gin?tab=doc) -[![Sourcegraph](https://sourcegraph.com/github.com/gin-gonic/gin/-/badge.svg)](https://sourcegraph.com/github.com/gin-gonic/gin?badge) -[![Open Source Helpers](https://www.codetriage.com/gin-gonic/gin/badges/users.svg)](https://www.codetriage.com/gin-gonic/gin) -[![Release](https://img.shields.io/github/release/gin-gonic/gin.svg?style=flat-square)](https://github.com/gin-gonic/gin/releases) -[![TODOs](https://badgen.net/https/api.tickgit.com/badgen/github.com/gin-gonic/gin)](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. +Copied from [gin-gonic/gin](https://github.com/gin-gonic/gin) + **The key features of Gin are:** - Zero allocation router diff --git a/context.go b/context.go index 129208b..f8bd6ad 100644 --- a/context.go +++ b/context.go @@ -21,7 +21,7 @@ import ( "git.company.lan/gopkg/gin/binding" "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. diff --git a/context_test.go b/context_test.go index 9da2549..f0ff449 100644 --- a/context_test.go +++ b/context_test.go @@ -25,7 +25,7 @@ import ( "git.company.lan/gopkg/gin/binding" testdata "git.company.lan/gopkg/gin/testdata/protoexample" - "github.com/gin-contrib/sse" + "git.company.lan/gopkg/gin-sse" "github.com/stretchr/testify/assert" "google.golang.org/protobuf/proto" ) diff --git a/go.mod b/go.mod index a092863..f7f61cc 100644 --- a/go.mod +++ b/go.mod @@ -3,8 +3,8 @@ module git.company.lan/gopkg/gin go 1.20 require ( + git.company.lan/gopkg/gin-sse v0.0.0-20241025130024-44e95010056c 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/goccy/go-json v0.10.2 github.com/json-iterator/go v1.1.12 diff --git a/go.sum b/go.sum index 49eae34..e0b7efa 100644 --- a/go.sum +++ b/go.sum @@ -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.10.0-rc/go.mod h1:ElCzW+ufi8qKqNW0FY314xriJhyJhuoJ3gFZdAHF7NM= 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/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/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/locales v0.14.1 h1:EWaQ/wswjilfKLTECiXz7Rh+3BjFhfDFKv/oXslEjJA= github.com/go-playground/locales v0.14.1/go.mod h1:hxrqLVvrK65+Rwrd5Fc6F2O76J/NuW9t0sjnWqG1slY= diff --git a/middleware_test.go b/middleware_test.go index acdf89c..d59fe4c 100644 --- a/middleware_test.go +++ b/middleware_test.go @@ -10,7 +10,7 @@ import ( "strings" "testing" - "github.com/gin-contrib/sse" + "git.company.lan/gopkg/gin-sse" "github.com/stretchr/testify/assert" )