mirror of
https://gitee.com/johng/gf
synced 2026-07-04 13:02:36 +08:00
16 lines
283 B
Go
16 lines
283 B
Go
package main
|
|
|
|
import (
|
|
"net/http"
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
func main() {
|
|
gin.SetMode(gin.ReleaseMode)
|
|
r := gin.New()
|
|
r.Use(gin.Recovery())
|
|
r.GET("/:name", func(c *gin.Context) {
|
|
c.String(http.StatusOK, c.Param("name"))
|
|
})
|
|
r.Run(":8199")
|
|
} |