gf/geg/net/ghttp/server/static.go

13 lines
205 B
Go

package main
import "gitee.com/johng/gf/g"
// 静态文件服务器
func main() {
s := g.Server()
s.SetIndexFolder(true)
s.SetServerRoot("/Users/john/Temp")
s.SetPort(8199)
s.Run()
}