With golang now gone from the CentOS Linux 7 distro ( deprecated upstream ), the best way to get golang for your system is to get it from the SCL.
Firstly, enable scl itself :
yum install centos-release-scl
Then install the go-toolset-7 scl ( this brings in version 1.10.2 at the moment )
yum install go-toolset-7
In order to use it, interactively you can run the scl enable command, which would also involve spawning a new shell. Note that the /bin/bash can be replaced with the commmand or shell you want to work in :
$ scl enable go-toolset-7 /bin/bash
$ go version
go version go1.10.2 linux/amd64
$ which go
If you want, like I do, want to just make this the default go for all our shells, add something like this to your .bashrc
source scl_source enable go-toolset-7
MAny thanks to the CentOS SCL SIG for shipping this go-toolset collection.