We will start using Go module from this point on. One of the immediate visible benefits to you is that you no longer need to put your source code in $GOPATH.
Let's create a new folder on your Desktop and this is going to be our go module.
cd~/Desktopmkdirgo-academy
Make sure you set environmental variable GO111MODULE to be on, either through command line interface or bash_profile.
exportGO111MODULE=on
Now initialize your first go module.
gomodinitgithub.com/calvinfeng/go-academy
Create a new project within the module and add a foo package to it.