batch_op_file/print/main.go

18 lines
316 B
Go
Raw Permalink Normal View History

2025-01-01 18:09:00 +08:00
package main
import (
"batch_op_file/util"
"fmt"
"os"
)
func main() {
var paths []string
rootDir, _ := os.Getwd()
paths, _ = util.GetAllFile(rootDir, paths, []string{".git", ".idea", ".vscode", ".gitignore", ".gitea", ".github", ".golangci.yml", "*.pyc"})
for _, fp := range paths {
fmt.Println(fp)
}
}