Gin How to use multiple domains?

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

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

// trace infotype TraceInfo struct{ Id_ bson.ObjectId `form:"_id" json:"_id" bson:"_id"...

Gin proposal: gin/v2?

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?

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

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?

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.

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

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

var sesssion SessionDataerr := c.Bind(&data)type SessionData struct { UserId int `json:"user_id"...

Gin Binding validation doesn't seem to work

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

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

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

Descriptionc.Redirect(http.StatusTemporaryRedirect, "") can lead to open redirect vulnerabilityHow to reproducepackage m...

Gin The stream is not response as a

DescriptionI'm using the stream to response gptchat result to front.My Demo like :func ChatWithGpt(c *gin.Context) { ...

Gin Slashes in parameter

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?

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?

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?

DescriptionCurrently, the debugPrintWARNINGNew() function runs when you call gin.New(). This can, under the right circum...

Gin Responding with HTTP 204

I am having trouble understanding how to respond with HTTP 204 (no content) using gin.Context.Tried context.JSON(204, ni...
上一页 下一页
.