title: How can a Go program consume a static library (.a file) of other Go code?
body: <p>I'm coming from the C world into the Go world.  C programs frequently make use of definitions (functions, etc.) that are in static libraries, which usually have a suffix of .a in Linux.</p>
  <p>With Go I can easily build .go files into such a library:</p>
  <pre><code>go build -buildmode=archive -o &lt;name&gt;.a
  </code></pre>
  <p>But once built, how can I direct other Go programs to make use of what's in this library?</p>