摘要:
package main import ( "fmt" "github.com/gin-gonic/gin" "net/http" "time" ) type Student struct { Name string `json:"name"` Country string `json:"count 阅读全文
摘要:
package main import ( "github.com/gin-gonic/gin" "log" "net/http" ) type Info struct { Name string `json:"name"` // 结构标签是的名称是 http 发送请求的时候的 key 的名字, 要 阅读全文
摘要:
main.go package main import ( "github.com/gin-gonic/gin" "net/http" "path" ) func main() { r :=gin.Default() r.LoadHTMLFiles("./upload.html") r.GET("/ 阅读全文