gin
gin copied to clipboard
Gin is a HTTP web framework written in Go (Golang). It features a Martini-like API with much better performance -- up to 40 times faster. If you need smashing performance, get yourself some Gin.
## Description In handler function, I write the code `c.Error(xxxx)`. I want to test the function, but r.serveHTTP(w, c.Request) doesn't affect the test gin context c, error array of c.Errors...
Fixes nil pointer dereference panic introduced here: https://github.com/gin-gonic/gin/pull/3172 Closes https://github.com/gin-gonic/gin/issues/3343 Closes https://github.com/gin-gonic/gin/issues/3581 Closes https://github.com/gin-gonic/gin/issues/3483 Closes https://github.com/gin-gonic/gin/issues/3178 `c.engine.ContextWithFallback` check panics in `Deadline()`, `Done()`, `Err()` and `Value()` when `c.engine` is `nil`. ---...
https://github.com/gin-gonic/gin/issues/3555
I have contacted the maintainer 4-5 times via email, Snyk, etc., but have not received a reply, so I am raising an Issue. ## Description `gin` > `context.go` > `func...
Remove redundant code `engine.RouterGroup.engine = engine` the `RouterGroup` can remove.
## Description After upgrading to 1.9.0 (from 1.5.0), our test code is now crashing here in `context.go` line 1216: ``` if !c.engine.ContextWithFallback || c.Request == nil || c.Request.Context() == nil...
## Description If you forget to import a template, you get a panic - shouldn't this be caught and a useful message printed to the console? (at least in debug...
It's a backward-compatible update that let users skip logs based on customized logic. Gin's `LoggerConfig` only allows configuring `SkipPaths`. It might not be enough when users need to skip logging...
Struct Error has methods on both value and pointer receivers. Such usage is not recommended by the Go Documentation.