Configure your environment according to these steps:
- Refer to the steps given in the Getting ready section of the The database/sql package with MySQL recipe.
- Run the go get https://github.com/agtorre/go-cookbook/tree/master/chapter5/database command or write your own using the The database/sql package with MySQL recipe.