Go Client
Official Go client for the Hindsight API, generated from the OpenAPI 3.1 spec using OpenAPI Generator.
import CodeSnippet from '@site/src/components/CodeSnippet'; import quickstartGo from '!!raw-loader!@site/examples/api/quickstart.go';
Installation
go get github.com/vectorize-io/hindsight/hindsight-clients/goRequires Go 1.23+.
Quick Start
<CodeSnippet code={quickstartGo} section="quickstart-full" language="go" />API Structure
The Go client provides access to all Hindsight API operations through structured namespaces:
client.MemoryAPI- Retain, recall, reflect operationsclient.BanksAPI- Bank managementclient.DirectivesAPI- Directive managementclient.MentalModelsAPI- Mental model managementclient.DocumentsAPI- Document operationsclient.EntitiesAPI- Entity operationsclient.OperationsAPI- Async operation monitoring
Working with Nullable Fields
The Go client uses NullableString, NullableTime, and similar types for optional fields:
Error Handling
<CodeSnippet code={quickstartGo} section="error-handling" language="go" />More Examples
For detailed examples of all operations, see:
- Python SDK documentation - API concepts are the same
- Node.js SDK documentation - API concepts are the same
- OpenAPI specification - Complete API reference