cheatsheet

Install

Manually

Download it from https://golang.org/dl/

Extract it.

tar -xzvf go1.14.4.linux-amd64.tar.gz
sudo mv go /usr/local/

Export env vars.

vim ~/.zshrc
export GOROOT=/usr/local/go
export GOPATH=$HOME/go
export PATH=$GOPATH/bin:$GOROOT/bin:$PATH

Ubuntu (apt)

sudo add-apt-repository ppa:longsleep/golang-backports
sudo apt-get update
sudo apt-get install golang-go

Add to your ~/.bashrc

export GOPATH=$HOME/go
export PATH=$PATH:/usr/local/go/bin:$GOPATH/bin

Libs / Frameworks

Cobra

Async

References

https://medium.com/@gauravsingharoy/asynchronous-programming-with-go-546b96cd50c1

Last updated

Was this helpful?