1. 4

  2. 2

    From the Makefile:

        GO111MODULE=on go build -v -o bin/${BINARY_NAME} src/*.go

    What if I have a foo subpackage (src/foo/foo.go)? You should pretty much always operate on packages in Go, rarely on files.

    This should probably be cd src && go install or something along those lines (possible setting GOBIN if you want something different than ~/go/bin as the destination).

    Same applies to go vet etc.

    1. 1

      Fair point. Any recommendations in that case on how to cover all packages without writing crazy bash for-loops?