gf/geg/other/test.go

17 lines
350 B
Go
Raw Normal View History

2017-11-23 10:21:28 +08:00
package main
2017-12-26 11:46:48 +08:00
import (
"gitee.com/johng/gf/g/os/gfile"
"strings"
"gitee.com/johng/gf/g/os/gfcache"
"fmt"
)
2018-08-21 21:18:56 +08:00
func main() {
files, _ := gfile.ScanDir("/home/john/Workspace/med3-svr", "*", true)
for _, file := range files {
if strings.Index(gfcache.GetContents(file), "ENV") != -1 {
fmt.Println(file)
}
}
}