I am in the spin cycle. I am getting a lot of answers when searching this error message:
Use “dep help [command]” for more information about a command.
[root@ip-10-0-132-251 bin]# ./dep ensure
root project import: /root/go/bin is not within any GOPATH/src
My dep file is located within a /root/go/bin/ directory
Please do not be root when doing anything. You should stay as your user as long as possible and never ever login as root. Use sudo for single commands when necessary and only if you understand what they do and how they will affect your system.
Other than that, source code of your programs has to be in $GOPATH/src not $GOPATH/bin.
But of course you need to create that folder if it’s isn’t there. Go won’t create it on installation for all users as only a fraction of users in a multiuser system actually might use go.