gin icon indicating copy to clipboard operation
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.

Results 472 gin issues
Sort by recently updated
recently updated
newest added

http: panic serving 10.13.207.251:25692: %!v(PANIC=Error method: runtime error: invalid memory address or nil pointer dereference) goroutine 1547630481 [running]: net/http.(*conn).serve.func1() ` func OK(c *gin.Context, data interface{}, msg ...string) { message :=...

## Description Based on the docs https://github.com/gin-gonic/gin#model-binding-and-validation I tried to use `context.BindJSON` instead of `c.ShouldBindJSON`. Unfortunately only `c.ShouldBindJSON` responds with the error message. ## How to reproduce ```go package main...

## Description Status code 404 is always returned when grpc-go is used as gin middleware, and it is normal when external grpc is used ## How to reproduce ``` package...

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

``` package main import ( "net/http" "github.com/gin-gonic/gin" ) type Params struct { A string `json:"a"` B string `json:"b"` C string `json:"c"` } func main() { g := gin.Default() // 开启JSON绑定支持params和query...

**Engine.UnescapePathValues** comment make me confused. ```go // If true, the path value will be unescaped. // If UseRawPath is false (by default), the UnescapePathValues effectively is true, // as url.Path...

I see tons of example for returning JSON and HTML Templates, but nothing show how to just properly return some raw HTML Please give me a working example and I'll...

`Handles` supports declaring multiple http methods for a request handle at the same time. For some handlers that need to support more than two http methods at the same time...

## How to reproduce ``` package main import ( "github.com/gin-gonic/gin" ) type UserRequest struct { Id int `uri:"id"` Nickname string `json:"nickname"` Mobile string `json:"mobile"` Email string `json:"email"` } func main()...