更新软件源

yum update -y

安装EPEL源

yum install -y epel-release

安装golang

yum install -y golang

检查安装

go version
go version go1.13.3 linux/amd64