Giter Site home page Giter Site logo

Comments (11)

girishgupta211-zz avatar girishgupta211-zz commented on April 28, 2024 1
go get -u github.com/gin-gonic/gin
govendor add +e

from gin-swagger.

pei0804 avatar pei0804 commented on April 28, 2024

I could not reproduce it.
I think to your gin is old.

from gin-swagger.

easonlin404 avatar easonlin404 commented on April 28, 2024

It seems like your go program use wrong $GOPATH to catch gin package

xxx/vendor/github.com/gin-gonic/gin

from gin-swagger.

eddycjy avatar eddycjy commented on April 28, 2024

@pei0804 @easonlin404 I solved this problem after updating gin , tk

from gin-swagger.

eddycjy avatar eddycjy commented on April 28, 2024

If there is a requirement on the version, it is recommended to explain in README.MD ?

from gin-swagger.

pei0804 avatar pei0804 commented on April 28, 2024

Bay the way, What was your version?

from gin-swagger.

BellUser avatar BellUser commented on April 28, 2024

I am having the same issue with Gin 1.2.

from gin-swagger.

jttttttttttttt avatar jttttttttttttt commented on April 28, 2024

I am having the same issue with Gin 1.3.

from gin-swagger.

jttttttttttttt avatar jttttttttttttt commented on April 28, 2024

routers\routers.go:22:53: cannot use ginSwagger.CustomWrapHandler(config, swaggerFiles.Handler) (type "github.com/gin-gonic/gin".HandlerFunc) as type "GinSample/vendor/github.com/gin-gonic/gin".HandlerFunc in argument to
r.RouterGroup.GET

from gin-swagger.

jttttttttttttt avatar jttttttttttttt commented on April 28, 2024

I use govendor to init my project, so in my project dir will create vendor pkg and will put gin project in this pkg. Finally,I move gin-swagger in this pkg.

from gin-swagger.

vzool avatar vzool commented on April 28, 2024

@easonlin404 and @pei0804 Hi, why you don't push a new "git tag" so go module can pull the latest version everywhere?
Current latest version now pulled by go is v1.1.0, check part of my go.mod:

module ABC

require (
	github.com/swaggo/gin-swagger v1.1.0
	github.com/swaggo/swag v1.5.1
)

from gin-swagger.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.