Go 1.11.5
fish
Go Install Linux
mkdir $HOME/go
wget -qO- "https://dl.google.com/go/go1.11.5.linux-amd64.tar.gz" | tar -zx --strip-components=1 -C $HOME/go
mkdir $HOME/go-third-party
set -x GOPATH $HOME/go-third-party
set PATH $HOME/go/bin $PATH
set PATH $GOPATH/bin $PATH
環境変数設定
string trim '
set -x GOPATH $HOME/go-third-party
set PATH $HOME/go/bin $PATH
set PATH $GOPATH/bin $PATH
' >> ~/.config/fish/config.fish
bash
mkdir $HOME/go
wget -qO- "https://dl.google.com/go/go1.11.5.linux-amd64.tar.gz" | tar -zx --strip-components=1 -C $HOME/go
mkdir $HOME/go-third-party
export GOPATH=$HOME/go-third-party
export PATH=$PATH:$HOME/go/bin
export PATH=$PATH:$GOPATH/bin
環境変数設定
vim ~/.bashrc
末尾に記載
export GOPATH=$HOME/go-third-party
export PATH=$PATH:$HOME/go/bin
export PATH=$PATH:$GOPATH/bin
参考URL