mirror of https://github.com/gin-gonic/gin.git
16 lines
260 B
Go
16 lines
260 B
Go
|
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")
|
||
|
}
|