I’m wondering where the
go get download and put the files when I set up
go get still download the file or just cashe it based on go.mod file? new to cashe, so does these cashed file disappear when I shut down my machine?
go get download and installed into
GOPATH is set and
GOBIN is not,
GOBIN automatically becomes
go get module caches the module in
GOPATH/pkg/mod. The cache is persistent so you won’t lose it when you shutdown the machine.
To know your current settings, simply use
env like (I’m on Linux so this is mine):
$ go env
More read up:
Just read through the docs again, yeah, we still need the
GOBIN/GOPATH configuration. No new updates about getting rid
The wiki page title changed† and consequently the URL.
† its officially
Some insignificant typograpical improvements and a link to the Modules page added.
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 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).
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.