新Sir

导航

 

2021年2月26日

摘要: package main import ( "fmt" "github.com/gin-gonic/gin" "net/http" "time" ) type Student struct { Name string `json:"name"` Country string `json:"count 阅读全文
posted @ 2021-02-26 16:14 新Sir 阅读(152) 评论(0) 推荐(0) 编辑
 
摘要: package main import ( "github.com/gin-gonic/gin" "log" "net/http" ) type Info struct { Name string `json:"name"` // 结构标签是的名称是 http 发送请求的时候的 key 的名字, 要 阅读全文
posted @ 2021-02-26 09:49 新Sir 阅读(177) 评论(0) 推荐(0) 编辑
 
摘要: main.go package main import ( "github.com/gin-gonic/gin" "net/http" "path" ) func main() { r :=gin.Default() r.LoadHTMLFiles("./upload.html") r.GET("/ 阅读全文
posted @ 2021-02-26 00:02 新Sir 阅读(188) 评论(0) 推荐(0) 编辑