ref: CentOS 7にyumでGoを入れてHello Worldするまで - Qiita
$ export LC_ALL=C
$ sudo yum update -y
$ sudo yum install -y epel-release
$ sudo yum install -y golang
$ mkdir dev
$ vi ~/.bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
export GOPATH=~/dev
export PATH=$GOPATH/bin:$PATH:$HOME/.local/bin:$HOME/bin