mirror of
https://gitee.com/johng/gf
synced 2026-07-04 21:03:13 +08:00
11 lines
276 B
Go
11 lines
276 B
Go
package main
|
|
|
|
import "gitee.com/johng/gf/g/net/ghttp"
|
|
|
|
func main () {
|
|
ghttp.GetServer().BindHandler("/router/*name", func(r *ghttp.Request) {
|
|
r.Response.WriteString(r.GetQueryString("name"))
|
|
})
|
|
ghttp.GetServer().SetPort(10000)
|
|
ghttp.GetServer().Run()
|
|
} |