This section describes the dependencies for using Go with the CData ODBC Driver for Greenplum.
Configure unixODBC (Linux and Mac Only)
Go ODBC uses unixOODBC on Linux and Mac, so make sure the driver is configured as described in Using unixODBC before continuing.
Install Go ODBC
Go ODBC can be installed through go get. You must also have Git installed for go get to download Go ODBC.
$ go get github.com/alexbrainman/odbc
Using Go ODBC
To use Go ODBC, you must import both the SQL package from the standard library as well as Go ODBC itself.
import ( "database/sql" _ "github.com/alexbrainman/odbc" )