0
1
Fork 0

Remove unnecessary Printf

This commit is contained in:
kerwin612 2023-07-14 10:23:11 +08:00
parent 6001312acc
commit add4afac29
1 changed files with 0 additions and 3 deletions

View File

@ -108,13 +108,10 @@ func getDirFiles(dir string) ([]string, error) {
func getFiles(parentDir, files string) ([]string, error) {
var fileList []string
fmt.Printf("the value of the files is: %s\n", files)
reg := regexp.MustCompile(`[^\s"']+|"([^"]*)"|'([^']*)'`)
arr := reg.FindAllString(files, -1)
fmt.Printf("the value after splitting by spaces is: %s\n", strings.Join(arr, ", "))
for _, str := range arr {
lines := strings.Split(str, "\n")
fmt.Printf("the value after splitting %s by \\n is: %s\n", str, strings.Join(lines, ", "))
for _, line := range lines {
line = strings.Trim(line, "'")
line = strings.Trim(line, `"`)