package main import ( "fmt" "path/filepath" ) func main() { //找出/home/ 目录下的所有的log文件 matches, _ = filepath.Glob("C:/Documents and Settings/xxx/Desktop/Copy of change-sub/*.md") for k, v := range matches { fmt.Println(k, v) } }
package main import ( "fmt" "path/filepath" ) func main() { //找出/home/ 目录下的所有的log文件 matches, _ = filepath.Glob("C:/Documents and Settings/xxx/Desktop/Copy of change-sub/*.md") for k, v := range matches { fmt.Println(k, v) } }