mirror of
https://gitee.com/johng/gf.git
synced 2024-12-05 05:37:55 +08:00
17 lines
310 B
Go
17 lines
310 B
Go
package main
|
|
|
|
import (
|
|
"github.com/gogf/gf/frame/g"
|
|
"github.com/gogf/gf/os/gfile"
|
|
"github.com/gogf/gf/os/glog"
|
|
)
|
|
|
|
func main() {
|
|
path := "/tmp/glog-cat"
|
|
glog.SetPath(path)
|
|
glog.Stdout(false).Cat("cat1").Cat("cat2").Println("test")
|
|
list, err := gfile.ScanDir(path, "*", true)
|
|
g.Dump(err)
|
|
g.Dump(list)
|
|
}
|