title: importing go files in same folder
body: <p>I am having difficulty in importing a local go file into another go file.</p>
  
  <p>My project structure is like something below</p>
  
  <pre><code>-samplego
  --pkg
  --src
  ---github.com
  ----xxxx
  -----a.go
  -----b.go
  --bin
  </code></pre>
  
  <p>I am trying to import a.go inside b.go. I tried the following,</p>
  
  <pre><code>import "a"
  import "github.com/xxxx/a"
  </code></pre>
  
  <p>None of these worked..I understand I have to meddle up with GOPATH but I couldn't get it right. Presently my GOPATH is pointing to samplego(/workspace/samplego).I get the below error</p>
  
  <pre><code>cannot find package "a" in any of:
  /usr/local/go/src/pkg/a (from $GOROOT)
  /workspace/samplego/src/a (from $GOPATH)
  </code></pre>
  
  <p>Also, how does GOPATH work when these source files are imported into another project/module? Would the local imports be an issue then? What is the best practice in this case - is it to have just one go file in module(with associated tests)? </p>