github.com/gogf/gf@v1.16.9/.example/os/gview/resource/main1.go (about) 1 package main 2 3 import ( 4 "fmt" 5 6 "github.com/gogf/gf/frame/g" 7 "github.com/gogf/gf/os/gres" 8 _ "github.com/gogf/gf/os/gres/testdata" 9 ) 10 11 func main() { 12 gres.Dump() 13 14 v := g.View() 15 v.SetPath("files/template/layout1") 16 s, err := v.Parse("layout.html") 17 fmt.Println(err) 18 fmt.Println(s) 19 }