1、sudo add-apt-repository ppa:gophers/go

2、apt-get update

3、apt-get install golang

完成