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