Nineya
Home
Blog
Gin How to use multiple domains?
2025-02-08 12:11:07
1360
How to use multiple domains with one port ?Comment From: ghostSuch as : type AdminController struct // portal.doma...
Gin ctx.Keys is overwritten by obj in methods like ctx.HTML
2025-02-08 12:11:03
2158
DescriptionIf you have middleware (using r.Use()), you can set keys through the method ctx.Set(k, v) which puts them int...
Gin Get request, unable to get multidimensional array parameters
2025-02-08 12:10:58
5411
// trace infotype TraceInfo struct{ Id_ bson.ObjectId `form:"_id" json:"_id" bson:"_id"...
Gin proposal: gin/v2?
2025-02-08 12:10:54
1186
based on https://github.com/golang/go/discussions/63397 (encoding/json/v2) and https://github.com/gin-gonic/gin/pull/339...
Gin How do you hide "TLS handshake errors" messages?
2025-02-08 12:10:49
4198
The Gin server outputs lots of TLS handshake errorI know they are spambots poking my server without a valid TLS handshak...
Gin BindJSON returns EOF
2025-02-08 12:10:44
6295
I am trying to use context#BindJSON but it returns EOF. If I replace it with a JSON Decoder it works fine.A sample of th...
Gin Why gin.Context.Cookie has to do url.QueryUnescape?
2025-02-08 12:10:33
2357
go version: go1.11.2 darwin/amd64gin version (or commit ref): v1.3.0operating system: macos/linuxDescriptionGin replace ...
Gin Gorilla Is a Hard Dependency that is now no longer maintained.
2025-02-08 12:10:26
1368
It looks like https://github.com/gorilla is archived and no longer maintained. Is it the intention of the gin contributo...
Gin Templates automatically replace escape problems
2025-02-08 12:10:21
13365
The object tag I used in the outer layer nested the subpages, but when I rendered the <script < symbol was automat...
Gin How to bind slice
2025-02-08 12:10:15
1054
var sesssion SessionDataerr := c.Bind(&data)type SessionData struct { UserId int `json:"user_id"...
Gin Binding validation doesn't seem to work
2025-02-08 12:10:10
6064
Placing 'required' on a struct doesn't prevent the request from going through. I'm getting some strange behavior with bi...
Gin (gin.Context)File unable to stream to body
2025-02-08 12:10:05
2006
DescriptionI am trying to render a file into the body stream using (gin. context).File I cannot render the output file t...
Gin How do I set the cache time for static files
2025-02-08 12:10:01
2981
Descriptionengine.Static("/static", staticPath)I want to add a header to a static file,like c.Header("Cache-Co...
Gin c.Redirect(http.StatusTemporaryRedirect, "") leads to open redirect vulnerability
2025-02-08 12:09:55
3686
Descriptionc.Redirect(http.StatusTemporaryRedirect, "") can lead to open redirect vulnerabilityHow to reproducepackage m...
Gin The stream is not response as a
2025-02-08 12:09:49
3823
DescriptionI'm using the stream to response gptchat result to front.My Demo like :func ChatWithGpt(c *gin.Context) { ...
Gin Slashes in parameter
2025-02-08 12:09:43
4161
I found #641 which is exactly my issue. This issue is from June 2016. Looks like it's still not supported :cry: As an al...
Gin Question: How to change log format with panic?
2025-02-08 12:09:39
197
https://github.com/gin-gonic/gin/pull/1677Ordinary log can change log format.but, panic log cannot change.https://github...
Gin Can i bind uri and query to a struct in one method?
2025-02-08 12:09:34
4558
DescriptionCan i bind uri and query in one method? Currently when i bind uri , it will return an error because of bindin...
Gin Suggestion: Move Print Debug to Run() functions?
2025-02-08 12:09:26
7935
DescriptionCurrently, the debugPrintWARNINGNew() function runs when you call gin.New(). This can, under the right circum...
Gin Responding with HTTP 204
2025-02-08 12:09:22
2085
I am having trouble understanding how to respond with HTTP 204 (no content) using gin.Context.Tried context.JSON(204, ni...
上一页
下一页
1
…
188
189
190
191
192
…
2246
.