Gin Map as query parameter suuport Bind

DescriptionI want to use a struct to bind map query parameter, it seems that gin doesn't support it yet.How to reproduce...

Gin Two pieces of code that are not significantly different, but the execution results are different, I don't know why

Descriptionfile1: results of enforcementpackage mainimport ( sc "context" "fmt" "githu...

Gin ctx.FileFromFS redirecting to the filepath

DescriptionI've been serving my react build's index.html using router.Use(static.Serve("/", middlewares.EmbedFolder(publ...

Gin ctx.GetString(key) should show some err info when cannot convert to a resonable value rather than return a wrong value with no more err info

Descriptionctx.GetString(key) should show some err info when cannot convert to a resonable value rather than return a ...

Gin Error reported when I'm using response writer provided by gin.Context: http: wrote more than the declared Content-Length. However, when I attempted to read the header "Content-Length", I found it not existing.😭

I am trying to use gin to construct a stream server supporting http-flv. As expected, if the header "Content-Length" is ...

Gin [Question][Help] c.Json - How does it handle errors?

This is the first time i am using gin.I am very new to this..c.Json(200, struct)Gin is automatically converting struct t...

Gin how to use setcookie

I ran two identical services, both using ginhttp://172.12.0.62:8080http://172.12.0.62:8082Use cookies to manage sessions...

Gin Render HTML to string variable

Hi!Is there a way to render a HTML template into a string after loading all templates with LoadHTMLGlob? Tried so search...

Gin How to stop a handler process?

If I want to stop a handler to return some error message ,maybe in middleware,or not.Just like python's tornado,it has a...

Gin SetCookie does not work

I am trying to set a cookie, but I am not getting it nor in Postman nor in browser....cookie := &http.Cookie{ ...

Gin *gin.context.json get panic

With issues:Use the search tool before opening a new issue.Please provide source code and commit sha if you found a bug....

Gin How to customize error messages for JSON parsing failures?

When there is a field type error in the JSON sent from the frontend, an error occurs stating that the JSON parsing has f...

Gin ShouldBindQuery cannot bind to []interface{}

DescriptionShouldBindQuery cannot bind to struct with []interface{} fieldHow to reproducepackage mainimport "github...

Gin c.File() bug cause goroutine and io waste

With issues:Use the search tool before opening a new issue.Please provide source code and commit sha if you found a bug....

Gin gin.CreateTestContext() may happen that the status code unexpected.

DescriptionI am testing the correctness of my code. There is a handler called func XXXHandler(c *gin.Context) with simpl...

Gin how to binding for multi files upload

1263's merged solution take no effect for multi files uploading.my code:// MailUpload struct for e-mailtype MailUpload s...

Gin Improve middleware for router groups

ProblemWhen using router groups, .Use does not do anything as middleware needs to be defined before routes. That is fine...

Gin [Cloudflare] real IP ".ClientIP()" in logs

My setup is like this:Client ==:> Cloudflare ==:> NPM ==:> Docker_Container ==:> ginin my logs I ofc just se...

Gin Embrace gonew

DescriptionOfficial go team released a new tool called gonew, which is basically starting a boilerplate. I think gin tea...

Gin Any way to graceful restart the gin http and https servers like nginx for production?

With issues:Use the search tool before opening a new issue.Please provide source code and commit sha if you found a bug....
上一页 下一页
.