# bitdotio-golang-example **Repository Path**: mirrors_databricks/bitdotio-golang-example ## Basic Information - **Project Name**: bitdotio-golang-example - **Description**: Example of using golang with bit.io - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-10-19 - **Last Updated**: 2025-10-12 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # bitdotio-golang-example Example of using golang with bit.io bit.io works with any golang PostgreSQL library; in this example we use `pgx`. Setup: `go get github.com/jackc/pgx/v4` Build: `go build` Grab your bit.io API key: * Log into bit.io and navigate to the database you would like to access * Click the green "Connect" * Click on your API key (the "Password" field in the connect menu) to copy it Run: `BITDOTIO_APIKEY= ./bitdotio-golang-example` to save the key to your environment. To run the program: `go run filename.go`