title: How to compile Go program consisting of multiple files?
body: <p>I have a small program that consists of three files, all belonging to the same package (main). But when I do <code>go build main.go</code> the build doesn't succeed. When it was just one file (<code>main.go</code>), everything worked fine.</p>
  <p>Now that I took some effort to separate the code, it looks like the compiler is unable to find the stuff that was taken out of <code>main.go</code> and put into these two other files (that reside in the same directory as the main.go). Which results in <code>undefined 'type'</code> errors.</p>
  <p>How to compile this program that consists of multiple files?</p>