favicon
favicon copied to clipboard
Gin middleware to support favicon.
Bumps [github.com/gin-gonic/gin](https://github.com/gin-gonic/gin) from 1.9.0 to 1.9.1. Release notes Sourced from github.com/gin-gonic/gin's releases. v1.9.1 Changelog BUG FIXES fix Request.Context() checks #3512 SECURITY fix lack of escaping of filename in Content-Disposition #3556...
```go package main import ( "net/http" "github.com/gin-gonic/gin" "github.com/thinkerou/favicon" ) func main() { r := gin.Default() r.Use(favicon.New("./favicon.ico")) // set favicon middleware r.NoRoute(func(c *gin.Context) { c.String(http.StatusNotFound, "not found") }) r.GET("/ping", func(c *gin.Context)...