• apt-get remove golang --purge
  • wget https://storage.googleapis.com/golang/go1.7.3.linux-amd64.tar.gz
  • sudo tar -zxvf go1.7.*.linux-amd64.tar.gz -C /usr/local
  • echo 'export GOROOT=/usr/local/go/bin/go' >> ~/.bashrc
  • echo 'export GOPATH=$HOME/go' >> ~/.bashrc
  • echo 'export PATH=$PATH:$GOROOT/bin:$GOPATH/bin' >> ~/.bashrc

compile something

  • go get github.com/ncw/rclone
  • go get github.com/mholt/caddy/caddy
  • $HOME/go/bin/rclone help
  • $HOME/go/bin/caddy -h
Easily deploy an SSD cloud server on @DigitalOcean in 55 seconds. Sign up using my link and receive $10 in credit
Proudly published with Ghost | Theme based on Draugur | Header Image by GUWEIZ@DeviantArt
Creative Commons Licence