title: How to import a single go file in golang? Unable to import go file
body: <p>Trying to import a file go file but unable to do so.</p>
  <p>I have one main file:</p>
  <pre><code>    main/
        main.go  
        go_single_file.go
  
  </code></pre>
  <pre><code>package main
  
  import (
  &quot;./go_single_file&quot;
  )
  
  func main() {
  
  }
  
  </code></pre>
  <p>and <code>go_single_file</code>:</p>
  <pre><code>package go_single_file
  
  func hello() bool{
  return true
  }
  </code></pre>
  <p>when i try to import <code>go_single_file</code> in my main file i get some sort of import error.</p>
  <p>I am doing something wrong but not sure what.</p>
  <p>If i make a separate package and import it then it works but not if it's in same folder.</p>
  <p>Can anyone tell how can i import a go file from same folder.</p>