Nineya
Home
Blog
Gin Update package of protobuf
2025-02-07 14:16:38
530
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
2025-02-07 14:16:31
214
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
2025-02-07 14:16:25
3169
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
2025-02-07 14:16:12
1936
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
2025-02-07 14:16:06
2674
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
2025-02-07 14:15:59
245
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?
2025-02-07 14:15:53
1168
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?
2025-02-07 14:15:48
382
.tmpl and .html for template,What's the difference?func main() { router := gin.Default() router.LoadHTMLGlob("temp...
Gin Validation issue
2025-02-07 14:15:42
3964
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
2025-02-07 14:15:36
3569
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
2025-02-07 14:15:30
5782
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
2025-02-07 14:15:24
1375
DescriptionIt appears that the path is decoded before matching/routing, leading to erroneous matches when the URL contai...
Gin middleware not receiving custom error
2025-02-07 14:15:18
405
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
2025-02-07 14:15:12
1482
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
2025-02-07 14:15:06
1265
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
2025-02-07 14:14:54
2747
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
2025-02-07 14:14:48
2740
git checkout v1.7.7go test ./...Description## Expectationsall passed## Actual result```bash=== RUN TestContextRenderFi...
Gin router adding asynchronousely result in panic.
2025-02-07 14:12:21
7812
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
2025-02-07 14:12:13
1018
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
2025-02-07 14:04:52
3306
The problem/use-case that the feature addressesAccording to existing information and experience, we found the Redis prob...
上一页
下一页
1
…
218
219
220
221
222
…
2246
.