1
2
3
4
5
6
7
8
9
sudo yum install golang -y

vim .bashrc

#add
export GOPATH=HOME/go
export PATH=PATH:$GOPATH/bin

#save