mirror of
https://gitee.com/johng/gf.git
synced 2024-12-02 20:28:17 +08:00
17 lines
350 B
Go
17 lines
350 B
Go
package main
|
|
|
|
import (
|
|
"gitee.com/johng/gf/g/os/gfile"
|
|
"strings"
|
|
"gitee.com/johng/gf/g/os/gfcache"
|
|
"fmt"
|
|
)
|
|
|
|
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)
|
|
}
|
|
}
|
|
} |