How to Install golang-github-data-dog-go-sqlmock-dev in Ubuntu 18.04



Install golang-github-data-dog-go-sqlmock-dev by entering the following commands in the terminal:

sudo apt update
sudo apt install golang-github-data-dog-go-sqlmock-dev

Description:

Sql mock driver for golang to test database interactions

This is a mock driver as database/sql/driver which is very flexible and pragmatic to manage and mock expected queries. All the expectations should be met and all queries and actions triggered should be mocked in order to pass a test. The package has no 3rd party dependencies. . This package contains the source.

Homepage: https://github.com/DATA-DOG/go-sqlmock

Version: 1.0.0-1

Section: universe/devel