mirror of
https://gitee.com/johng/gf.git
synced 2024-12-05 05:37:55 +08:00
14 lines
243 B
Go
14 lines
243 B
Go
package main
|
|
|
|
import (
|
|
"gitee.com/johng/gf/g/net/ghttp"
|
|
)
|
|
|
|
func main() {
|
|
s := ghttp.GetServer()
|
|
s.BindHandler("/", func(r *ghttp.Request){
|
|
r.Response.Writeln("go frame!")
|
|
})
|
|
s.SetPort(8100, 8200, 8300)
|
|
s.Run()
|
|
} |