February 2020
Intermediate to advanced
404 pages
8h 42m
English
In Chapter 4, Simplifying RESTful Services with Popular Go Frameworks, we used a driver package called go-sqlite3 to work with SQLite3. In the same way, pq is a database driver package available for Go. We can install that library system-wide by using the go get command, as follows:
go get github.com/lib/pq
We can also use the dep tool to install this package. We'll use it in this example. Let's look at the steps for installation here:
touch -p $GOPATH/src/github.com/git-user/chapter7/basicExample
Read now
Unlock full access