Go Module
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.
Make sure you set environmental variable GO111MODULE
to be on, either through command line interface or bash_profile.
Now initialize your first go module.
Create a new project within the module and add a foo
package to it.
Let's create a simple handler within this package.
Navigate back to the your sillyserver
Create a server
Build and run the server, witness the magic of go module.
Last updated