Configure your environment according to these steps:
- Download and install Go on your operating system from https://golang.org/doc/install, and configure your GOPATH environment variable.
- Open a terminal/console application, navigate to your GOPATH/src and create a project directory such as
$GOPATH/src/github.com/yourusername/customrepo.
All code will be run and modified from this directory.
- Optionally, install the latest tested version of the code using the go get github.com/agtorre/go-cookbook/ command.
- Run the go get github.com/go-sql-driver/mysql command.
- Install and configure MySQL using https://dev.mysql.com/doc/mysql-getting-started/en/.
- Run the export MYSQLUSERNAME=<your mysql username> command.
- Run the export MYSQLPASSWORD=<your ...