Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

How to install Go

📅 2016-Aug-25 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ go ⬩ 📚 Archive

The Go programming language has been getting popular for certain types of server-side programming. Installing the compiler and its tools and using them is not as straightforward as you might assume. Here are the steps I use:

$ tar xvf go-package-you-downloaded.tar.gz
$ sudo mv go /usr/local
$ go install

Note how the Go compiler will always look under the $GOPATH/src for the above compilation.

$ $GOPATH/bin/hello

Tried with: Go 1.7 and Ubuntu 16.04

© 2022 Ashwin Nanjappa • All writing under CC BY-SA license • 🐘📧