github.com/iikira/iikira-go-utils@v0.0.0-20230610031953-f2cb11cde33a/utils/file_test.go (about) 1 package utils_test 2 3 import ( 4 "fmt" 5 "github.com/iikira/iikira-go-utils/utils" 6 "testing" 7 ) 8 9 func TestWalkDir(t *testing.T) { 10 files, err := utils.WalkDir("/Users/syy/tmp", "") 11 if err != nil { 12 t.Fatal(err) 13 } 14 for _, file := range files { 15 fmt.Println(file) 16 } 17 }