Comments (3)
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.
In droplet(v0.4.2 which solved issue 35). DelHeader is in data/resp.go , which is interface method.
and droplet use ctx.Write as RespWriter
I find in gin v1.8.1, ctx.Writer doesnot implment the DelHeader method.
from droplet.
hi, what version the gin used in your project is?
from droplet.
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)
- how to set cookie? HOT 1
- 对代码写法的疑问 HOT 1
- Why not use *gin.Context in gin wrapper ?? HOT 2
- Feat: need a way to get request body HOT 2
- Feat: droplet.Context can save the gin.Context HOT 1
- pipeline无中间件的情况下,Handler返回Context? HOT 1
- bug: get request occurs error in binding query param HOT 2
- Support `application/x-www-form-urlencoded` codecc
- How to access Keys of gin.Context?
- Support more http frame work
- panic when upload file
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from droplet.