package main
import (
_ "demo/internal/packed"
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/net/ghttp"
)
func Test(r *ghttp.Request) {
r.Response.Writef("name: %v, pass: %v", r.Get("name"), r.Get("pass"))
}
func main() {
//cmd.Main.Run(gctx.New())
s := g.Server()
s.BindHandler("/", Test)
s.SetPort(8199)
s.Run()
}
goframe框架学习之Get方法获取参数
于 2023-03-25 12:49:49 首次发布