In this lesson, we develop a Go package for working with the PostgreSQL database that supports the functionality of the RESTful server. The package is named restdb and is stored in https://github.com/Educative-Content/restdb. Due to the use of Go modules, its development can take place anywhere we want in our filesystem—in this case, in the ~/code/restdb folder. So, we run go mod init github.com/Educative-Content/restdb to enable Go modules for the restdb package during its development.

Get hands-on with 1200+ tech skills courses.