The database/sql and database/sql/driver packages are designed for using databases from Go and implementing database drivers, respectively.
See the design goals doc:
Drivers for Go's sql package include:
[*]
[*]
[*]
[*]
Drivers marked with a [*]
are both included in and pass the compatibility test suite at https://github.com/bradfitz/go-sql-test