Files
gf/.example/os/gres/gres_example.go

21 lines
366 B
Go
Raw Normal View History

2020-03-28 21:32:29 +08:00
package main
import (
2021-10-11 21:41:56 +08:00
_ "github.com/gogf/gf/v2/os/gres/testdata/example/boot"
2021-10-11 21:41:56 +08:00
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/net/ghttp"
2020-03-28 21:32:29 +08:00
)
func main() {
s := g.Server()
s.Group("/", func(group *ghttp.RouterGroup) {
group.GET("/template", func(r *ghttp.Request) {
r.Response.WriteTplDefault(g.Map{
"name": "GoFrame",
})
})
})
s.Run()
}