Configure your environment according to these steps:
- Download and install Go 1.12.6 or greater on your operating system at https://golang.org/doc/install.
- Open a Terminal or console application, create a project directory such as ~/projects/go-programming-cookbook and navigate to this directory. All code will be run and modified from this directory.
- Clone the latest code into ~/projects/go-programming-cookbook-original and optionally work from that directory rather than typing the examples manually, as follows:
$ git clone [email protected]:PacktPublishing/Go-Programming-Cookbook-Second-Edition.git go-programming-cookbook-original
- 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 mysql password> command.