GoLang

From The World according to Vissie
Jump to navigation Jump to search

Setup

https://www.digitalocean.com/community/tutorials/how-to-install-go-on-debian-9

Get the latest file, and download it

https://golang.org/dl/
wget -c https://dl.google.com/go/go1.13.5.linux-amd64.tar.gz
aunpack ./go1.13.5.linux-amd64.tar.gz
sudo chown -R root:root ./go
sudo mv go /usr/local
sudo vim /etc/bash.bashrc
...
export GOPATH=$HOME/go_work
export PATH=$PATH:/usr/local/go/bin:$GOPATH/bin
...

source ~/.profile

Debug

https://github.com/go-delve/delve