github.com/gogf/gf@v1.16.9/.example/os/gview/resource/main3.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  	s, err := v.Parse("index.html")
    16  	fmt.Println(err)
    17  	fmt.Println(s)
    18  }