Gin RedirectFixedPath redirecting trailing slashes

DescriptionRedirectFixedPath is redirecting trailing slashes regardless of the RedirectTrailingSlash setting.In gin.go t...

Gin Need to be able to choose the action delimiters of templates

I'm using Gin with angularjs, since angular also use {{ }} we have change the action delimiters of go templates.Comment ...

Gin How to add json response data without struct definition from []byte ?

DescriptionI get []byte data which is raw json from cuelang functions. But i do not known how to set it to Gin response ...

Gin [v1.7.0+] BindJSON panics when JSON body is "null"

DescriptionbindJSON will panic since version 1.7.0 if JSON body is set to "null" for a POST request.How to reproducepack...

Gin the problem fail access gin web server api

DescriptionI build a gin web server, some simple api just like this:I can visit this api in PC http://192.168.1.5...

Gin context.BindJSON does not respond with error message

DescriptionBased on the docs https://github.com/gin-gonic/gin#model-binding-and-validation I tried to use context.BindJS...

Gin Can't read channel in goroutine in gin handler

DescriptionHow to reproducepackage mainimport ( "fmt" "github.com/gin-gonic/gin")var signal ch...

Gin How to access the context from a template function?

Is it possible to access the gin.Context object from a template function? Specifically, I would like to read the content...

Gin Is it possible to get middleware chain for specific router?

I want to check proper middlewares are used for my router in my test codeCan i get handlerFunc array for specific router...

Gin how to bind query string?

package mainimport "log"import "github.com/gin-gonic/gin"type Person struct { Name string `jso...

Gin MarshalJSON not being called

With the given code below, it seems like the custom MarshalJSON function isn't being called with i hit the api endpoint....

Gin Tutorial on golang website does not work.

I am following this tutorial on the golang website https://go.dev/doc/tutorial/web-service-ginUpon getting to the point ...

Gin ShouldBindJSON return nil error

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

Gin Request body disappear if we access it on middleware

go version: go1.11 darwin/amd64gin version (or commit ref): v1.3.0operating system: Mac OS V10.10.5DescriptionRequest bo...

Gin Q: import/use go_json instead of standard json

HiFirst of all thank you for creating, and maintaining this amazing package.I noticed that gin is implementing go_json d...

Gin How to get text/plain parameters?

With issues:The client initiates the request using postContent-Type is: text/plainThe request data is json, but encrypte...

Gin c.ClientIP()

Friends, the update to 1.7 broke the work with IP addresses of clients.I am proxying Go through Nginxlocation /backend/ ...

Gin Found 2 known vulnerabilities in the Gin(GO-2022-0969 & GO-2022-0288)

Scan Vulnerability Database with the following command$ go install golang.org/x/vuln/cmd/govulncheck@latest$ govulncheck...

Gin Assigning result of template operation to string

DescriptionAs part of a microservice, I'm attempting to use a gin context's HTML template function to dynamically genera...

Gin why purejson add new line to the end of json

DescriptionI notice that purejson add new line to the end of json compare with jsonHow to reproducepackage mainimport ( ...
上一页 下一页
.