mirror of
https://github.com/golang/go.git
synced 2025-05-05 15:43:04 +00:00
Updated SettingGOPATH (markdown)
parent
155b3fdbef
commit
d99cc3f58c
@ -1,10 +1,10 @@
|
|||||||
|
# Setting `GO` environment variables
|
||||||
|
- go env -w GOPROXY=direct
|
||||||
|
- go env -w GOSUMDB=off
|
||||||
|
|
||||||
# Setting `GOPATH`
|
# Setting `GOPATH`
|
||||||
|
|
||||||
The `GOPATH` environment variable specifies the location of your workspace. If no `GOPATH` is set, it is assumed to be `$HOME/go` on Unix systems and `%USERPROFILE%\go` on Windows. If you want to use a custom location as your workspace, you can set the `GOPATH` environment variable. This page explains how to set this variable on various platforms.
|
The `GOPATH` environment variable specifies the location of your workspace. If no `GOPATH` is set, it is assumed to be `$HOME/go` on Unix systems and `%USERPROFILE%\go` on Windows. If you want to use a custom location as your workspace, you can set the `GOPATH` environment variable. This page explains how to set this variable on various platforms.
|
||||||
Setting go environment variables for executing "go mod tidy"
|
|
||||||
go env -w GOPROXY=direct
|
|
||||||
go env -w GOSUMDB=off
|
|
||||||
|
|
||||||
|
|
||||||
- [Unix systems](#unix-systems)
|
- [Unix systems](#unix-systems)
|
||||||
* [Bash](#bash)
|
* [Bash](#bash)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user