mirror of
https://gitea.com/actions/release-action.git
synced 2024-06-16 13:50:52 +02:00
Remove unnecessary Printf
This commit is contained in:
parent
6001312acc
commit
add4afac29
3
main.go
3
main.go
|
@ -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, `"`)
|
||||
|
|
Loading…
Reference in New Issue
Block a user