Skip to content

Go SDK

The Go SDK discovers configuration schemas from konfigo struct tags, registers them with the backend, watches for live updates over the gRPC transport, and binds snapshots back into typed structs.

Full guide

The complete SDK guide — installation, transports, discovery, and binding details — lives in the package source: packages/go/README.md

Quick start

definitions, _ := konfigo.DiscoverDefinitions(PaymentsOptions{})
client, _ := konfigo.NewClientFromRemote(ctx, konfigo.RealtimeConfigOptions{
    IsEnabled: true,
    ServiceID: "orders",
    Version:   "1.0.0",
}, transport, definitions)

go client.Watch(ctx)

var payments PaymentsOptions
konfigo.BindConfig(client.Store.Snapshot(), &payments)

See also