Trying to get "go get" to work properly


When executing the go get command (for example on dgraph-io/dgo) it doesn’t actually pull it down and put it in my src folder. This used to work. I’m coming back to go after a few months focusing on other things (I’m a front-end dev)

Apparently a lot has changed since I last did any kind of go development. Is this all modules based now? Kind of like the way npm does it with package.json?

Hello, can you provide go version, have you try doing that from other folder?

Yes, this changed with the introduction of Go modules (which are now the default).
$GOPATH is no longer a thing. Downloaded modules re now cached in $GOCACHE
(use go env to see what it is set to).

You can learn more by having a look at

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.