Nineya
Home
Blog
Gin Map as query parameter suuport Bind
2025-02-08 03:52:24
2100
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
2025-02-08 03:52:20
3351
Descriptionfile1: results of enforcementpackage mainimport ( sc "context" "fmt" "githu...
Gin ctx.FileFromFS redirecting to the filepath
2025-02-08 03:52:16
4359
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
2025-02-08 03:52:11
2500
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.😭
2025-02-08 03:52:07
3405
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?
2025-02-08 03:52:03
2098
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
2025-02-08 03:51:59
864
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
2025-02-08 03:51:53
3379
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?
2025-02-08 03:51:46
1035
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
2025-02-08 03:51:41
1679
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
2025-02-08 03:51:32
3856
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?
2025-02-08 03:51:30
5280
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{}
2025-02-08 03:51:27
1713
DescriptionShouldBindQuery cannot bind to struct with []interface{} fieldHow to reproducepackage mainimport "github...
Gin c.File() bug cause goroutine and io waste
2025-02-08 03:51:24
2242
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.
2025-02-08 03:51:20
2173
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
2025-02-08 03:51:16
4846
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
2025-02-08 03:51:12
6441
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
2025-02-08 03:51:07
9972
My setup is like this:Client ==:> Cloudflare ==:> NPM ==:> Docker_Container ==:> ginin my logs I ofc just se...
Gin Embrace gonew
2025-02-08 03:51:01
199
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?
2025-02-08 03:50:57
1359
With issues:Use the search tool before opening a new issue.Please provide source code and commit sha if you found a bug....
上一页
下一页
1
…
199
200
201
202
203
…
2246
.