gin下载
go get github.com/gin-gonic/gin
代码展示 package main import ( "github.com/gin-gonic/gin" "net/http" ) func main() { router :=gin.Default() router.GET("/", func(c *gin.Context) { c.String(http.StatusOK,"hello world") }) router.Run(":1688") }
界面展示