mirror of
https://gitee.com/johng/gf
synced 2026-07-09 06:50:30 +08:00
17 lines
308 B
Go
17 lines
308 B
Go
package main
|
|
|
|
import (
|
|
"github.com/gogf/gf/g"
|
|
"github.com/gogf/gf/g/os/gfile"
|
|
"github.com/gogf/gf/g/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)
|
|
}
|