Gin Update package of protobuf

The old package "github.com/golang/protobuf/proto" is deprecated.It could be saw in it's mod file:// Deprecated: Use the...

Gin add custom validator

this is my idea. you are welcome to give me some advicehttps://github.com/lshsuper/gin-validator/blob/master/README.mdCo...

Gin c.JSON() unexpected behaviour

Descriptionc.JSON(code, interface) does not work as intended. Returns the right JSON body but with the wrong content-typ...

Gin Cors Middleware in go preflight request

Hi, I need your help. After hours searching how expose cors middleware I haven't found any about it (different to my con...

Gin GET 404

Why 404when GET /universe/api/v1/im/unilog/ima/ads and /universe/api/v1/im/unilog/iam/ads.DescriptionHow to reproducep...

Gin consider update "github.com/golang/protobuf/proto" in binding/protobuf.go

go: module github.com/golang/protobuf is deprecated: Use the "google.golang.org/protobuf" module instead.Comment From: B...

Gin How to create midleware for static route?

hoe to crate midleware fo static route file?Descriptionthis is the code## How to reproducepackage mainimport ( "...

Gin .tmpl and .html for template,What's the difference?

.tmpl and .html for template,What's the difference?func main() { router := gin.Default() router.LoadHTMLGlob("temp...

Gin Validation issue

DescriptionThere is no way to handle validation error If struct field has type "int" and user sends string value.How to ...

Gin Defferent Group Router Result For v1.7.1, v.1.7.4, v1.7.7

DescriptionI don't know whether it is a bug or a change to the latest version. I just want to know how to use it for the...

Gin panic recovered: http2: stream closed

After upgrading from v1.1.2 to v1.6.2, I sometimes see 500 which is caused by the following error:2020/04/23 06:04:36 [R...

Gin Path decoded before routing

DescriptionIt appears that the path is decoded before matching/routing, leading to erroneous matches when the URL contai...

Gin middleware not receiving custom error

I'm throwing some error in my route handler:func getQuestion(c *gin.Context) { err := errors.New("some error"...

Gin maybe redundant route-tree node on v1.7.7

DescriptionI just read the source code tree.go, found the function insertChild creates a redundant tree node, similar to...

Gin Access-Control-Allow-Origin cannot be modified

DescriptionI have a middleware that dynamically changes the value of "Access-Control-Allow-Origin", but it is always inv...

Gin context.ClientIP() is not correct

DescriptionThe request is coming from a trusted proxy, but c.ClientIP() is returning cloudflare's ip for some reason. Wh...

Gin some test failed on v1.7.7 tags & go1.17

git checkout v1.7.7go test ./...Description## Expectationsall passed## Actual result```bash=== RUN TestContextRenderFi...

Gin router adding asynchronousely result in panic.

DescriptionI jus add a router with gin's method GET and it result in the program panic. But when I run the program aga...

Gin Help with passing variables to template

DescriptionI'm working on this project. At the function named profile in main.go, I tried to pass Username and Email inf...

Redis [NEW]Reduce the gossip traffic of the cluster by an order of magnitude

The problem/use-case that the feature addressesAccording to existing information and experience, we found the Redis prob...
上一页 下一页
.