2019-08-10 23:36:38 +08:00
|
|
|
package main
|
|
|
|
|
|
|
|
|
|
import (
|
2019-08-13 13:45:01 +08:00
|
|
|
"github.com/gogf/gf/frame/g"
|
2019-08-10 23:36:38 +08:00
|
|
|
"github.com/gogf/gf/os/gres"
|
2019-08-16 00:37:12 +08:00
|
|
|
_ "github.com/gogf/gf/os/gres/testdata"
|
2019-08-10 23:36:38 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
func main() {
|
|
|
|
|
gres.Dump()
|
2019-09-01 21:34:15 +08:00
|
|
|
g.Dump(gres.ScanDir("/root/image", "*"))
|
2019-08-31 18:04:12 +08:00
|
|
|
//g.Dump(gres.Scan("/root/image/", "*", true))
|
|
|
|
|
//g.Dump(gres.Scan("/template", "*"))
|
|
|
|
|
//g.Dump(gres.Scan("/template/layout2", "*.html", true))
|
2019-08-10 23:36:38 +08:00
|
|
|
}
|