Go SDK
A fully-typed, idiomatic client for Go.
Install
Requires Go 1.21+.
Initialize
Usage
The snippets below assume the package imports usgm "github.com/usgm/usgm-go" for request/response
types, plus context and fmt.
Error handling
Structured errors are compatible with errors.As. Import "github.com/usgm/usgm-go/core":
Transient 429 and 5xx responses are retried automatically with exponential backoff. See
Errors for the full problem+json contract.