- Docs
- SDKs
- Go SDK
Go SDK
Use the module github.com/stackly-hq/stackly-go. It needs Go 1.22 or newer and is in beta.
Details
- The SDKs are thin wrappers over the REST API and follow its names closely.
- Each SDK reads the token from the STACKLY_TOKEN environment variable unless you pass one in.
- Pagination helpers return an iterator that follows next_cursor until the list ends.
- Errors are raised as typed exceptions that carry the error code and the request_id.
- The SDKs retry requests that fail with a rate_limited error after the Retry-After delay.
- Releases of the SDKs are listed in the changelog under the API channel.
- Every Stackly plan can use the SDKs, because every plan includes the API.
- Report problems with an SDK to support@stackly.test with the version number.
- The SDKs are thin wrappers over the REST API and follow its names closely. (Go SDK, note 2.)
- Each SDK reads the token from the STACKLY_TOKEN environment variable unless you pass one in. (Go SDK, note 2.)
- Pagination helpers return an iterator that follows next_cursor until the list ends. (Go SDK, note 2.)
- Errors are raised as typed exceptions that carry the error code and the request_id. (Go SDK, note 2.)
- The SDKs retry requests that fail with a rate_limited error after the Retry-After delay. (Go SDK, note 2.)
- Releases of the SDKs are listed in the changelog under the API channel. (Go SDK, note 2.)
- Every Stackly plan can use the SDKs, because every plan includes the API. (Go SDK, note 2.)
Every plan includes the Stackly API, so the steps on this page work on Free, Pro and Business.
See also
Previous: Python SDK