If you’re working with Go Lang, the official Benzinga Go SDK package is the easiest way to fetch and work with secrets for your application.

Basic Usage

This example demonstrates how to use the Benzinga Go SDK in a simple Go application. The application retrieves a secret named API_KEY from the dev environment of the YOUR_PROJECT_ID project.

We do not recommend hardcoding your API Tokens. Setting it as an environment variable would be best.

Installation

$ go get github.com/benzinga/go-sdk

Was this page helpful?