mirror of
https://gitee.com/johng/gf.git
synced 2024-12-04 05:07:44 +08:00
17 lines
254 B
Go
17 lines
254 B
Go
package main
|
|
|
|
import (
|
|
"github.com/gogf/gf/frame/g"
|
|
"github.com/gogf/gf/net/ghttp"
|
|
)
|
|
|
|
func main() {
|
|
s := g.Server()
|
|
s.SetIndexFolder(true)
|
|
s.BindHandler("/", func(r *ghttp.Request) {
|
|
r.Response.Write("hello world")
|
|
})
|
|
s.SetPort(8199)
|
|
s.Run()
|
|
}
|