Skip to main content
Server-side only — This SDK is designed for server-side environments (Go servers, CLI tools). Never use it in browser/frontend code as this exposes your API key. See Frontend Integration for the proxy pattern.
The official Zavu SDK for Go provides a strongly-typed, idiomatic Go interface to the Zavu API.

Installation

Requirements

  • Go 1.21 or higher

Quick Start

Configuration

Initialize the Client

Environment Variables

The SDK reads ZAVUDEV_API_KEY automatically if no key is provided:

Accessing Response Headers

Use option.WithResponseInto() to access the full HTTP response including headers (useful for rate limiting):

Error Handling

Error Types

Retries

The SDK supports automatic retries with configurable backoff:

Type Safety

The SDK provides strongly-typed request and response types: