title: Cannot find imported package in Golang
body: <p>I am trying to learn Golang, and I have a beginners issue.</p>
  
  <p>I created two files "helloworld.go" and "greetings.go". I am trying to import greetings.go into helloworld.go using </p>
  
  <pre><code>import (
      "test/greetings/greetings"
  )
  </code></pre>
  
  <p>But I get the following error:</p>
  
  <blockquote>
    <p>cannot find package "test/greetings/greetings" in any of:
          C:\Go\src\test\greetings\greetings (from $GOROOT)
          C:\work\go-ws\src\test\greetings\greetings (from $GOPATH)       exit
    status 1</p>
  </blockquote>
  
  <p>I am using a windows OS and my GOPATH and GOROOT values are as follows:</p>
  
  <pre><code>"GOPATH": "C:/work/go-ws"
  "GOROOT": "C:/Go"
  </code></pre>
  
  <p>My project structure is as shown:</p>
  
  <pre><code>C:
  --work
     -- go-ws
        -- anlytics
            -- src
                -- test
                    -- greetings
                         **greetings.go**
                    **helloworld.go**
            -- pkg
            -- bin
  </code></pre>
  
  <p>Where am I going wrong?</p>