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

We are developing a new technique to automatically transform your official unit tests into fuzz drivers. And we plan to issue the generated fuzz driver to OSS-Fuzz. We manually fix...

I want to serve static assets from an `embed.FS` instance without directory listing. The `onlyFilesFS` wrapper is a perfect fit. This PR exports `onlyFilesFS`, adds unit tests and documentation. Usage...

The following warning points to a nonexistent link: ``` [GIN-debug] [WARNING] You trusted all proxies, this is NOT safe. We recommend you to set a value. Please check https://pkg.go.dev/github.com/gin-gonic/gin#readme-don-t-trust-all-proxies for...

I have this struct for http request: ``` type jobPostRequest struct { Name string `json:"name"` Currency string `json:"currency"` } ``` I would like to trim whitespaces in Name and capitalize...

## Description use c.Bind() for recursion struct param, output **fatal**. ## How to reproduce ```go package main import ( "github.com/gin-gonic/gin" "net/http" "net/http/httptest" ) type ParamA struct { B *ParamB }...

Example: ```go package main import ( "net/http" "github.com/gin-gonic/gin" ) func main() { router := gin.New( // middleware gin.Use(gin.Recovery(), gin.Logger()), // routes gin.GET("/get", func(c *gin.Context) {}), gin.GET("/get/another", func(c *gin.Context) {}), gin.POST("/post",...

## Description ``` ================== WARNING: DATA RACE Write at 0x00c0001ea020 by goroutine 50: github.com/gin-gonic/gin.(*Engine).ServeHTTP() /Users/xx/goproject/test/test/gin/gin.go:573 +0x174 net/http.serverHandler.ServeHTTP() /Users/xx/sdk/go1.22.2/src/net/http/server.go:3137 +0x2a8 net/http.(*conn).serve() /Users/xx/sdk/go1.22.2/src/net/http/server.go:2039 +0xf28 net/http.(*Server).Serve.gowrap3() /Users/xx/sdk/go1.22.2/src/net/http/server.go:3285 +0x4c Previous read at 0x00c0001ea020 by...

## Description i cannot seem to send a response back to the requestor from within a middleware handler chain and continue to run handlers in the chain. everything i have...

Issue references: https://github.com/gin-gonic/gin/issues/3935 For string to bytes conversion Two points to make this change: 1. The raw method also has 0 memory allocation 2. Unsafe is slightly slower than the...

## Description I ran the given benchmark in [bytesconv_test.go](https://github.com/gin-gonic/gin/blob/master/internal/bytesconv/bytesconv_test.go) to compare the performance of converting a string to bytes using: 1. unsafe conversion: https://github.com/gin-gonic/gin/blob/0397e5e0c0f8f8176c29f7edd8f1bff8e45df780/internal/bytesconv/bytesconv_1.20.go#L15-L17 2. raw conversion: https://github.com/gin-gonic/gin/blob/0397e5e0c0f8f8176c29f7edd8f1bff8e45df780/internal/bytesconv/bytesconv_test.go#L22-L24 And found...