title: Package Import error on Golang
body: <p>My post has 2 question</p>
  
  <p>I'm essentially trying to understand how to use gomock with gingko</p>
  
  <p>GOPATH</p>
  
  <p><code>/Users/Ratatouille/Desktop/test/goExample</code></p>
  
  <p>The following project is located at</p>
  
  <p><code>/Users/Ratatouille/Desktop/test/goExample/square</code> </p>
  
  <p>which has following project structure</p>
  
  <pre><code>.
  ├── area.go
  └── area_test
      ├── area_mock.go
      ├── area_mock_test.go
      └── area_suite_test.go
  </code></pre>
  
  <p>what I'm not able to understand why I'm getting following error </p>
  
  <pre><code>Failed to compile area_test:
  
  can't load package: package ./area_test: found packages area_test (area_mock.go) and area (area_mock_test.go) in /Users/Ratatouille/Desktop/test/goExample/square/area_test
  
  Ginkgo ran 1 suite in 303.243871ms
  Test Suite Failed
  </code></pre>
  
  <p>my second question is project repo has area.go file which look like this</p>
  
  <pre><code>package main
  
  import "fmt"
  
  type Square struct {
      side float32
  }
  
  func (s *Square) Area() float32 {
      return s.side * s.side
  }
  
  func (s *Square) CalculateArea(shaper Shaper) float32 {
      shaper.Area()
  }
  
  type Shaper interface {
      Area() float32
  }
  
  func main() {
      sq1 := new(Square)
      sq1.side = 2
  
      var areaIntf Shaper
      areaIntf = sq1
      fmt.Println(areaIntf.Area())
  }
  </code></pre>
  
  <p>My question is how do I <strong>import</strong> <code>main</code> package inside <code>area_mock_test.go</code></p>