摘要:
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
阅读(190)
评论(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
阅读(198)
评论(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
阅读(212)
评论(0)
推荐(0)
浙公网安备 33010602011771号