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 456 gin issues
Sort by recently updated
recently updated
newest added

## Description Currently `c.SetCookie` does not accept cookie `Expire` field which is present in http.Cookie struct and might be important if you want to maintain short lived sessions via cookie...

## What? Proposed fix for https://github.com/gin-gonic/gin/issues/3178 ## Why? In cases where we create a context with no engine (e.g. unit tests), it might lead to a nil pointer dereference. ##...

bug

- 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...

- 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...

## Description When I using Gin http get request to get the result synchronously, the following panic occurrs. ![1659408791805](https://user-images.githubusercontent.com/8843053/182281682-1608b174-e07f-4662-b22e-84670e0a8c2a.png) ## How to reproduce The problem occurs occasionally, so I can't...

## Description I have a custom type that implements a few interfaces, including `encoding.TextUnmarshaler` and `encoding/json.Unmarshaler`. I want to use `binding.Uri` to bind path params that include values of that...

当使用session存储数组/切片/map数据类型是,在其他页面取出时会为nil,并且在没有报错的情况下导致其他后存入session的值也存储失败,全部都时nil,请看下图: ![00](https://user-images.githubusercontent.com/19563488/182095226-fce9279b-824b-496f-8fb2-a1bcbe70572c.png) ![1-1](https://user-images.githubusercontent.com/19563488/182095268-51d885e2-8778-4920-8570-d4f8c2d01da8.png) ![2-2](https://user-images.githubusercontent.com/19563488/182095332-e567db85-9a3e-435e-8e6d-faef6f00b43c.png) ![2-1](https://user-images.githubusercontent.com/19563488/182095309-d41a8631-0934-42af-bc34-c48a7be74ac2.png) ![1-2](https://user-images.githubusercontent.com/19563488/182095288-27ad4b73-9810-4ebe-8660-fbe86baf996f.png)

## Description Why ``Gin`` doesn't have something like this in ``Echo``? https://github.com/labstack/echo/blob/ec92fedf21e817d2d52004a4178292404beb9eaa/group.go#L87 So we can have something like: ```Go func main() { g := gin.Default() g.Match([]string{"GET", "POST", "PUT"}, "/hello/:name", handlerFunc)...

hi, how to set the middlewares flow like below ?