My project is structured as so:
src/github.com/foo/bar/
- binary1
- binary1.go
- binary2
- binary2.go
Each of these binaries are in a package main
.
Is there a way, when I'm in the directory src/github.com/foo/bar
to just run go build
and end up with both binaries compiled?
go build ./...
didn't produce any binaries.
go build -a
actually builds every package.
Or should I just call it as :
(cd binary1; go build)
(cd binary2; go build)