gf/README.MD
2018-01-05 23:45:07 +08:00

2.2 KiB

安装

go get -u gitee.com/johng/gf

使用

package main

import "gitee.com/johng/gf/g/net/ghttp"

func main() {
    ghttp.GetServer().BindHandler("/", func(r *ghttp.Request){
        r.Response.WriteString("Hello World!")
    })
    ghttp.GetServer().Run()
}

文档