Skip to main content
Flare has a Go SDK available on Github. It is a light wrapper around net/http.Client that automatically manages API authentication.

Installing

Basic Usage

The flareio package provides the NewApiClient method that can be used to create a Flare API client. The client exposes Get and Post methods that have a similar API to net/http.Client with the exception that they accept paths as parameters instead of full URLs.

Specifying a Tenant Id

The Api Client can be configured to use a specific tenant id using the WithTenantId option.

Paging Util

The ApiClient has IterGet and IterPostJson methods that return iterators implementing the Flare standard paging pattern .
The paging util leverages Go iterators which require Go version >= 1.23.
Paging Util Example