remove dirlist. It wasn't being used anyway. add verbose logging to build command

This commit is contained in:
Greg Gauthier 2021-03-12 10:48:16 +00:00
parent cd2617b976
commit 2209027abd
2 changed files with 1 additions and 22 deletions

View File

@ -23,4 +23,4 @@ pipelines:
- mkdir ./build - mkdir ./build
- go version - go version
- go mod tidy - go mod tidy
- go build -a -v -n -o ./build/ . - go build -a -v -o ./build/ .

View File

@ -1,21 +0,0 @@
package main
import (
"fmt"
"os"
)
func dirlist() []string {
var output []string
wd, _ := os.Getwd()
dirlist, _ := os.ReadDir(wd)
for _, item := range dirlist {
if os.DirEntry.IsDir(item) {
output = append(output, fmt.Sprintf(wd + "/" + os.DirEntry.Name(item) + "/"))
} else {
output = append(output, fmt.Sprintf(wd + "/" + os.DirEntry.Name(item)))
}
}
return output
}