I just started writing Go today (so 0 experience), and wonder if Go supports any form of "building all source files" like what mvn install
does.
My project structure is
src
`-github.com
`-myproject
|- package1
| `- main.go
`- package2
|- lib1_used_by_main.go
`- lib2_used_by_main.go
When I do
cd src/github.com/myproject
go build
this fails with no buildable Go source files in src/github.com/myproject
, which is kind of right, because all source files are in subpackages.
Is there a command to build all subpackages, without listing each of them explicitly?