From 94ee8d79502c0957b88ec963188b8bc11f3441e4 Mon Sep 17 00:00:00 2001 From: Volodymyr Khrestin Date: Thu, 28 Nov 2019 15:26:57 +0200 Subject: [PATCH] changed module path some tidy --- example/basic/main.go | 4 ++-- example/gzipped/main.go | 4 ++-- go.mod | 14 +++++--------- go.sum | 5 +++++ swagger_test.go | 4 ++-- 5 files changed, 16 insertions(+), 15 deletions(-) diff --git a/example/basic/main.go b/example/basic/main.go index 5b36a23..0f7d84a 100644 --- a/example/basic/main.go +++ b/example/basic/main.go @@ -1,11 +1,11 @@ package main import ( + ginSwagger "github.com/canecat/gin-swagger" "github.com/gin-gonic/gin" swaggerFiles "github.com/swaggo/files" - ginSwagger "github.com/swaggo/gin-swagger" - _ "github.com/swaggo/gin-swagger/example/basic/docs" + _ "github.com/canecat/gin-swagger/example/basic/docs" ) // @title Swagger Example API diff --git a/example/gzipped/main.go b/example/gzipped/main.go index ef460d8..0f93343 100644 --- a/example/gzipped/main.go +++ b/example/gzipped/main.go @@ -1,12 +1,12 @@ package main import ( + ginSwagger "github.com/canecat/gin-swagger" "github.com/gin-contrib/gzip" "github.com/gin-gonic/gin" swaggerFiles "github.com/swaggo/files" - ginSwagger "github.com/swaggo/gin-swagger" - _ "github.com/swaggo/gin-swagger/example/basic/docs" + _ "github.com/canecat/gin-swagger/example/basic/docs" ) // @title Swagger Example API diff --git a/go.mod b/go.mod index 85830d3..02fb235 100644 --- a/go.mod +++ b/go.mod @@ -1,17 +1,13 @@ -module github.com/swaggo/gin-swagger +module github.com/canecat/gin-swagger require ( github.com/gin-contrib/gzip v0.0.1 - github.com/gin-contrib/sse v0.1.0 // indirect github.com/gin-gonic/gin v1.4.0 - github.com/kr/pretty v0.1.0 // indirect - github.com/mattn/go-isatty v0.0.8 // indirect github.com/stretchr/testify v1.3.0 + github.com/swaggo/files v0.0.0-20190704085106-630677cd5c14 + github.com/swaggo/gin-swagger v1.2.0 // indirect github.com/swaggo/swag v1.5.1 - github.com/ugorji/go v1.1.5-pre // indirect golang.org/x/net v0.0.0-20190611141213-3f473d35a33a - golang.org/x/sys v0.0.0-20190610200419-93c9922d18ae // indirect - golang.org/x/text v0.3.2 // indirect - golang.org/x/tools v0.0.0-20190611222205-d73e1c7e250b // indirect - gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 // indirect ) + +go 1.13 diff --git a/go.sum b/go.sum index 47d45af..03ad178 100644 --- a/go.sum +++ b/go.sum @@ -49,10 +49,15 @@ github.com/pkg/errors v0.8.1 h1:iURUrRGxPUNPdy5/HRSm+Yj6okJ6UtLINN0Q9M4+h3I= github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/stretchr/objx v0.1.0 h1:4G4v2dO3VZwixGIRoQ5Lfboy6nUhCyYzaqnIAPPhYs4= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= github.com/stretchr/testify v1.3.0 h1:TivCn/peBQ7UY8ooIcPgZFpTNSz0Q2U6UrFlUfqbe0Q= github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= +github.com/swaggo/files v0.0.0-20190704085106-630677cd5c14 h1:PyYN9JH5jY9j6av01SpfRMb+1DWg/i3MbGOKPxJ2wjM= +github.com/swaggo/files v0.0.0-20190704085106-630677cd5c14/go.mod h1:gxQT6pBGRuIGunNf/+tSOB5OHvguWi8Tbt82WOkf35E= +github.com/swaggo/gin-swagger v1.2.0 h1:YskZXEiv51fjOMTsXrOetAjrMDfFaXD79PEoQBOe2W0= +github.com/swaggo/gin-swagger v1.2.0/go.mod h1:qlH2+W7zXGZkczuL+r2nEBR2JTT+/lX05Nn6vPhc7OI= github.com/swaggo/swag v1.5.1 h1:2Agm8I4K5qb00620mHq0VJ05/KT4FtmALPIcQR9lEZM= github.com/swaggo/swag v1.5.1/go.mod h1:1Bl9F/ZBpVWh22nY0zmYyASPO1lI/zIwRDrpZU+tv8Y= github.com/ugorji/go v1.1.4/go.mod h1:uQMGLiO92mf5W77hV/PUCpI3pbzQx3CRekS0kk+RGrc= diff --git a/swagger_test.go b/swagger_test.go index 3ddc419..5393262 100644 --- a/swagger_test.go +++ b/swagger_test.go @@ -7,11 +7,11 @@ import ( "github.com/gin-contrib/gzip" + "github.com/canecat/gin-swagger/swaggerFiles" "github.com/gin-gonic/gin" "github.com/stretchr/testify/assert" - "github.com/swaggo/gin-swagger/swaggerFiles" - _ "github.com/swaggo/gin-swagger/example/basic/docs" + _ "github.com/canecat/gin-swagger/example/basic/docs" ) func TestWrapHandler(t *testing.T) {