title: Visual Studio Code remote containers and Go GOPATH
body: <p>I created a Go container using Visual Studio Code remote containers extensions.</p>
  <p>The project structure is like this:</p>
  <pre class="lang-none prettyprint-override"><code>archy-go
  ├── .devcontainer
  │   ├── devcontainer.json
  │   └── Dockerfile
  └── src
      └── git.mycompany.com
          ├── main.go
          └── mycompany
              └── archy-go
                  └── cmd
                      ├── createBackend.go
                      ├── createFull.go
                      ├── create.go
                      ├── root.go
                      ├── say.go
                      └── sayhello.go
  </code></pre>
  <p>But when I try the command <code>go build</code> inside the <code>git.mycompany.com</code> folder I get an error like this:</p>
  <pre class="lang-none prettyprint-override"><code>root@b570cd82e7e5:/workspaces/archy-go/src/git.mycompany.com# go build
  main.go:3:8: cannot find package &quot;git.mycompany.com/mycompany/archy-go/cmd&quot; in any of:
          /usr/local/go/src/git.mycompany.com/mycompany/archy-go/cmd (from $GOROOT)
          /go/src/git.mycompany.com/mycompany/archy-go/cmd (from $GOPATH)
  </code></pre>
  <p>What did I do wrong? Or what is the correct way to set up GOPATH in this situation?</p>