Install Go Version 1.10 at https://golang.org/doc/install, depending on your operating system.
The code files for this chapter can be found at the following GitHub URL: https://github.com/PacktPublishing/Learn-Data-Structures-and-Algorithms-with-Golang/tree/master/Chapter02.
In this chapter, database operations require the github.com/go-sql-driver/mysql package. In addition to this, MySQL (4.1+) needs to be installed from https://dev.mysql.com/downloads/mysql/.
Run the following command:
go get -u github.com/go-sql-driver/mysql