Skip to content

Install

wget https://dl.google.com/go/go1.14.1.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf go1.14.1.linux-amd64.tar.gz
export PATH=$PATH:/usr/local/go/bin

Notes

  • There should be package statemant
  • build using go build filename
  • if package is not main: building don't output the executalbe file
  • install package using go get github.com/....
  • import using the whole name: import "github.com/...."
  • Only Uppercased elements are exported to be used in other packages