Merge branch 'master' into https_example

This commit is contained in:
Bo-Yi Wu 2017-07-10 19:54:55 -05:00 committed by GitHub
commit cb9f60afee
2 changed files with 15 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

15
examples/favicon/main.go Normal file
View File

@ -0,0 +1,15 @@
package main
import (
"github.com/gin-gonic/gin"
"github.com/thinkerou/favicon"
)
func main() {
app := gin.Default()
app.Use(favicon.New("./favicon.ico"))
app.GET("/ping", func(c *gin.Context) {
c.String(200, "Hello favicon.")
})
app.Run(":8080")
}