No worries, OP has a different thread and is aware of the “Go Module vs. GOPATH” development and how to approach them.
As far as all the documentations, we still need to set GOPATH
. Even the installation guide is still requiring new setup to set GOPATH
(Download and install - The Go Programming Language).
Quote:
GOPATH and Modules
When using modules, GOPATH is no longer used for resolving imports. However, it is still used to store downloaded source code (in GOPATH/pkg/mod) and compiled commands (in GOPATH/bin).