Refer: https://www.codeooze.com/ubuntu/ubuntu-18-golang-snap/
Step 1: Check if Go is already installed
$ go version
Step 2: Install Go using snap, see what's available
$ snap info go
Step 3: Classic confinement error
Explanation: Most snaps are installed in confined containers and only have limited access to other system resources. However, snaps published with classic confinement have greater access to the rest of the system, which is desirable for scripting packages such as Go.
$ sudo snap install go --classic
Step 4: Verify the install
$ snap list
$ go version
$ go env
Conclusion
You have now successfully installed Go in Ubuntu 18 using snap
