From 20b15082206a3ddbc3eeb7f44f2ee51495090bc2 Mon Sep 17 00:00:00 2001 From: samkenx <73696477+samkenx@users.noreply.github.com> Date: Wed, 4 Nov 2020 20:07:39 +0000 Subject: [PATCH] Updated SettingGOPATH (markdown) --- SettingGOPATH.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SettingGOPATH.md b/SettingGOPATH.md index f0d152e2..76eef8c0 100644 --- a/SettingGOPATH.md +++ b/SettingGOPATH.md @@ -19,7 +19,7 @@ The `GOPATH` environment variable specifies the location of your workspace. If n ## Go 1.13+ ```bash -go env -w GOPATH=$HOME/go +go env -X GOPATH=$HOME/go ``` ## Bash @@ -34,7 +34,7 @@ Save and exit your editor. Then, source your `~/.bash_profile`. source ~/.bash_profile ``` -## Zsh +## ~/.zshrc Edit your `~/.zshrc` file to add the following line: