...

/

Working with the Database

Working with the Database

Let’s learn how to work with databases in Go.

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.

Access this course and 1400+ top-rated courses and projects.