title: How to import local packages without gopath
body: <p>I've used <code>GOPATH</code> but for this current issue I'm facing it does not help. I want to be able to create packages that are specific to a project:</p>
  
  <pre><code>myproject/
  ├── binary1.go
  ├── binary2.go
  ├── package1.go
  └── package2.go
  </code></pre>
  
  <p>I tried multiple ways but how do I get <code>package1.go</code> to work in the <code>binary1.go</code> or the <code>binary2.go</code> and so on?</p>
  
  <p>For example; I want to be able to <code>import "package1"</code> and then be able to run <code>go build binary1.go</code> and everything works fine without the error being thrown that the package cannot be found on <code>GOROOT</code> or <code>GOPATH</code>. The reason why I need this kind of functionality is for large scale projects; I do not want to have to reference multiple other packages or keep them in one large file.</p>