go (golang) error giving go install - unexpected directory layout command

I'm new to go(golang) I'm trying to start an application but without success, it returns me the following error when giving the go install command:

unexpected directory layout:
        import path: github.com/gorilla/handlers
        root: D:\BitBucketERN\GO\src
        dir: D:\BitBucketERN\GO\src\bitbucket.com\ernetworkdev\ern-admin-cadastro-api\vendor\github.com\gorilla\handlers
        expand root: D:\BitBucketERN\GO\src
        expand dir: D:\BitBucketERN\GO\src\bitbucket.com\ernetworkdev\ern-admin-cadastro-api\vendor\github.com\gorilla\handlers
        separator: \

My version:

 go1.10 windows/amd64
Author: Gabriel Souza, 2018-03-19

1 answers

Set the environment variables GOROOT being the folder where you performed the installation, in my case I installed directly on the C:/Go, already to GOPATH where you will Program effectively.

insert the description of the image here

 1
Author: Diego Ecker, 2020-06-11 14:45:34