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

## Description I get []byte data which is raw json from cuelang functions. But i do not known how to set it to Gin response data to return http json...

validator升级到v10.11.0了,增加了required_if等相关的处理和中文翻译 https://github.com/go-playground/validator/releases/tag/v10.11.0 但目前gin的最新版本为v1.8.1,引用的validator版本为v10.10.0 https://github.com/gin-gonic/gin/releases/tag/v1.8.1 在gin的下个版本,validator的版本能更新吗,谢谢

## How to reproduce ```go package main import ( "fmt" "log" "math" "net/http" "github.com/gin-gonic/gin" ) func main() { r := gin.Default() r.Use(customMws()...) r.GET("/ping", func(c *gin.Context) { c.JSON(http.StatusOK, gin.H{ "message": "pong",...

When testing a gin handler using a `httptest.NewRecorder`, when using (inside the handler) `c.Status(404)` to set the status code, and then bailing out of the request, then the status from...

This adds the ability to directly render protobufs as JSON and bind to / unmarshal JSON payloads as protobufs. Adds: ```go func (c *Context) ProtoJSON(code int, obj any) { c.Render(code,...

enhancement

README has this feature for binding.Form, however there is no method BindBody. Now formBinding doesn't implement interface binding.BindingBody I added BindingBody methods and tests. https://github.com/gin-gonic/gin/issues/3296 Or it'd better adjust README...

Supports to create a directory in the file path creation if not exists. If path is already a directory / no directory in path, it does nothing and returns nil.

- go version: 1.9 - gin version (or commit ref): master branch - operating system: ## Description ![image](https://user-images.githubusercontent.com/24504247/47624659-c1839b00-db59-11e8-9fbf-6a54da08c7f4.png) this image is my http post params . I'm going to use...

feature

- With issues: type formA struct { Foo string `json:"foo" xml:"foo" binding:"required"` } objA := formA{} c.ShouldBindBodyWith(&objA, binding.Form) cant use binding.Form should use binding.JSON maybe ## Description ## How to...