Original post

I’m trying to install some dependencies with get command. I also have created a go.mod file with `go mod init

Whenever I try to get the dependencies they get downloaded into my $GOPATH/pkg. I tried to remove $GOPATH variable but it has some default value, probably ~/go. Now all dependencies are going into ~/go/pkg. Is this how it is supposed to work? Can’t I keep dependencies in my project folder? Is changing $GOPATH to my project folder the only way?