Code Monkey home page Code Monkey logo

Comments (3)

jujiale avatar jujiale commented on September 24, 2024 1

hi, what version the gin used in your project is?

@ShiningRush I suffered such situaction as this issue metioned. I want to know. when I use
`

     github.com/shiningrush/droplet v0.4.2
 github.com/shiningrush/droplet/wrapper/gin v0.3.0

`

error is:
`

    C:\go\pkg\mod\github.com\shiningrush\droplet\wrapper\[email protected]\gin.go:13:20: cannot use ctx.Writer (variable of type "github.com/gin-gonic/gin".ResponseWriter) as type data.ResponseWriter in struct literal:
"github.com/gin-gonic/gin".ResponseWriter does not implement data.ResponseWriter (missing DelHeader method)

`

which gin version should I use. because I need to use the droplet which has fixed #35

as I use gin v1.8.1 as following. it appears this issue metioned problem.
image

In droplet(v0.4.2 which solved issue 35). DelHeader is in data/resp.go , which is interface method.
image

and droplet use ctx.Write as RespWriter
image

I find in gin v1.8.1, ctx.Writer doesnot implment the DelHeader method.

from droplet.

ShiningRush avatar ShiningRush commented on September 24, 2024

hi, what version the gin used in your project is?

from droplet.

ShiningRush avatar ShiningRush commented on September 24, 2024

got it.
This error because you are using a old gin's wrapper(v0.3.0), it is incompatible with latest droplet(v0.4.2).
I already upgrade the wrappers version for latest droplet, ref #39

@jujiale you can using command to upgrade your gin's wrapper like below:

go get github.com/shiningrush/droplet/wrapper/gin

from droplet.

Related Issues (12)

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.