摘要:
package main import ( "github.com/gin-gonic/gin" "net/http" ) func main() { r:= gin.Default() r.GET("user/:name/:age", func(c *gin.Context) { name := 阅读全文
摘要:
demo project main.go package main import ( "github.com/gin-gonic/gin" "net/http" ) func main() { r := gin.Default() r.LoadHTMLFiles("./login.html","in 阅读全文
摘要:
package main import ( "fmt" "github.com/gin-gonic/gin" "net/http" ) //type User struct { // Name string `json:"name" ` // Age int64 `json:"age"` //} t 阅读全文