Multiple tools and example for golang

  • database : example to use database in golang
  • fichier : example to use file creation and JSON reading
  • mail : example on mail

Install go linux

  1. get go
  1. extract the package
  • sudo tar -C /usr/local -xzf go1.15.4.linux-amd64.tar.gz

  1. add the exec command to ~/.profile
  • vim ~/.profile

  1. add the following line

export GOPATH=$HOME/work
export PATH=$PATH:/usr/local/go/bin:$GOPATH/bin
  1. refresh the profile
  • source ~/.profile


View Github