This is part 9 of 09 part series on building web server with go. Checkout https://www.gophersumit.com/series/web-server/ for more. database Connecting to SQL database one of the common task for web applications. Let’s see how we can work with SQL databases in Go. database/sql Go standard library comes with database\sql package. This provides Generic interface around SQL database. For using any sql database with Go (see list here : https://github.com/golang/go/wiki/SQLDrivers), there are 2 packages required, Generic database/sql and database driver for SQL database we want to use.