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.
export GOROOT=/usr/local/go
export GOPATH=$HOME/go
export PATH=$GOPATH/bin:$GOROOT/bin:$PATHUbuntu (apt)
sudo add-apt-repository ppa:longsleep/golang-backports
sudo apt-get update
sudo apt-get install golang-goAdd to your ~/.bashrc
export GOPATH=$HOME/go
export PATH=$PATH:/usr/local/go/bin:$GOPATH/binLibs / Frameworks
Cobra
Async
References
https://medium.com/@gauravsingharoy/asynchronous-programming-with-go-546b96cd50c1
Last updated
Was this helpful?