Install golang-github-lib-pq-dev by entering the following commands in the terminal:
sudo apt update sudo apt install golang-github-lib-pq-dev
Description:
pure Go postgres driver for Go’s database/sql package
After importing this package, you can connect to a postgres database from your Go programs. This package does not depend on libpq-dev and does not need cgo, making it suitable for use when cross-compiling. . This package contains the source.
Homepage: https://github.com/lib/pq
Version: 0.0~git20151007.0.ffe986a-1
Section: universe/devel