摘要:
1.返回byte和string类型 context.Writer.Write([]byte("fullpath="+fullpath)) context.Writer.WriteString("fullpath"+fullpath) 2.返回JSON package main import ( "g 阅读全文
摘要:
1.ShouldBindQuery(获取GET)和ShouldBind(获取POST) package main import ( "fmt" "github.com/gin-gonic/gin" "log" ) func main(){ engine := gin.Default() engine 阅读全文