diff --git a/README.md b/README.md index da1230e..2654796 100644 --- a/README.md +++ b/README.md @@ -167,7 +167,7 @@ Installation Path: # Add gobrew to your ~/.bashrc or ~/.zshrc export PATH="$HOME/.gobrew/current/bin:$HOME/.gobrew/bin:$PATH" -export GOROOT="$HOME/.gobrew/current/go" +export GOPATH="$HOME/.gobrew/current/go" ``` # Uninstall gobrew @@ -229,12 +229,10 @@ echo "export GOBREW_ROOT=/usr/local/share" >> ~/.zshrc curl -sLk https://raw.githubusercontent.com/kevincobain2000/gobrew/master/git.io.sh | sh ``` -Set `GOROOT` and `GOPATH` in your shell config file (`.bashrc` or `.zshrc`). +Set `GOPATH` in your shell config file (`.bashrc` or `.zshrc`). ```sh # optionally set -export GOROOT="$HOME/.gobrew/current/go" -# optionally set export GOPATH="$HOME/.gobrew/current/go" ``` diff --git a/cmd/gobrew/main_unix.go b/cmd/gobrew/main_unix.go index fa0816f..fbc41d4 100644 --- a/cmd/gobrew/main_unix.go +++ b/cmd/gobrew/main_unix.go @@ -5,6 +5,6 @@ package main const usageMsg string = ` # Add gobrew to your ~/.bashrc or ~/.zshrc export PATH="$HOME/.gobrew/current/bin:$HOME/.gobrew/bin:$PATH" - export GOROOT="$HOME/.gobrew/current/go" + export GOPATH="$HOME/.gobrew/current/go" ` diff --git a/cmd/gobrew/main_windows.go b/cmd/gobrew/main_windows.go index e783409..a35cc4c 100644 --- a/cmd/gobrew/main_windows.go +++ b/cmd/gobrew/main_windows.go @@ -5,6 +5,6 @@ package main const usageMsg string = ` # Add gobrew to your environment variables PATH="%USERPROFILE%\.gobrew\current\bin;%USERPROFILE%\.gobrew\bin;%PATH%" - GOROOT="%USERPROFILE%\.gobrew\current\go" + GOPATH="%USERPROFILE%\.gobrew\current\go" `