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

0

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

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
    
asked by anonymous 19.03.2018 / 15:51

1 answer

1

Set the GOROOT environment variables to be the folder where you installed it, in my case I installed it directly in C: / Go, already the GOPATH where you will program it effectively.

    
10.05.2018 / 13:34