Files
gf/geg/net/ghttp/server/controller/user.go
2018-08-01 18:44:43 +08:00

28 lines
346 B
Go

package main
import (
"gitee.com/johng/gf/g/frame/gmvc"
"gitee.com/johng/gf/g"
)
type User struct {
gmvc.Controller
}
func (c *User) Index() {
c.View.Display("index.html")
}
func main() {
g.View().SetPath("C:/www/static")
s := g.Server()
s.BindController("/user", new(User))
s.SetPort(8199)
s.Run()
}