github.com/gogf/gf@v1.16.9/.example/net/ghttp/server/template/conflicts-name/client.go (about) 1 package main 2 3 import ( 4 "github.com/gogf/gf/frame/g" 5 "github.com/gogf/gf/net/ghttp" 6 ) 7 8 // https://github.com/gogf/gf/issues/437 9 func main() { 10 s := g.Server() 11 s.BindHandler("/", func(r *ghttp.Request) { 12 r.Response.WriteTpl("client/layout.html") 13 }) 14 s.SetPort(8199) 15 s.Run() 16 }