gf/geg/other/test.go

15 lines
243 B
Go

package main
import (
"gitee.com/johng/gf/g"
"gitee.com/johng/gf/g/net/ghttp"
)
func main() {
s := g.Server()
s.BindHandler("/", func(r *ghttp.Request){
r.Response.Write("123")
})
s.SetPort(8199)
s.Run()
}