title: Relative imports in Go
body: <p>I have a go Project with the following directory structure</p>
  
  <pre><code>utils(pkg)
     | auth.go (has a function names test1)
  controllers(pkg)
     | login.go (has a function names test2)
  </code></pre>
  
  <p>I am trying to access function test1 from login.go. Here is what I have done</p>
  
  <pre><code>import "../utils"
  
  func test2(c *gin.Context) bool{
        utils.test1()
  }
  </code></pre>
  
  <p>But I always get <code>Unresolved reference test1</code>. I am new to go . Can anyone help why I am getting this error?</p>