mirror of
https://github.com/golang/go.git
synced 2025-05-05 15:43:04 +00:00
Updated SettingGOPATH (markdown)
parent
b3f3544047
commit
20b1508220
@ -19,7 +19,7 @@ The `GOPATH` environment variable specifies the location of your workspace. If n
|
|||||||
## Go 1.13+
|
## Go 1.13+
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
go env -w GOPATH=$HOME/go
|
go env -X GOPATH=$HOME/go
|
||||||
```
|
```
|
||||||
|
|
||||||
## Bash
|
## Bash
|
||||||
@ -34,7 +34,7 @@ Save and exit your editor. Then, source your `~/.bash_profile`.
|
|||||||
source ~/.bash_profile
|
source ~/.bash_profile
|
||||||
```
|
```
|
||||||
|
|
||||||
## Zsh
|
## ~/.zshrc
|
||||||
|
|
||||||
Edit your `~/.zshrc` file to add the following line:
|
Edit your `~/.zshrc` file to add the following line:
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user