Go SDK — zeq
Idiomatic context.Context-aware Go client. Zero external dependencies — uses only net/http and encoding/json from stdlib. Same wire format as every other SDK.
Install
go get github.com/hulyasmath/zeq-go@latest
First call — public, no key
package main
import (
"context"
"fmt"
"log"
"github.com/hulyasmath/zeq-go"
)
func main() {
p, err := zeq.Pulse(context.Background())
if err != nil { log.Fatal(err) }
fmt.Printf("Zeqond %d · phase %.3f · R(t) %v\n", p.Zeqond, p.Phase, p.RT)
}
Authed call — zeq.Compute()
client := zeq.NewClient(zeq.Config{
APIKey: os.Getenv("ZEQ_KEY"),
})
r, err := client.Compute(ctx, zeq.ComputeRequest{
Operators: []string{"KO42", "QM5", "GR40"},
Domain: "cross",
Inputs: map[string]any{"t": 0},
})
if err != nil { log.Fatal(err) }
fmt.Printf("%v %s ± %v\n", r.Value, r.Unit, r.Uncertainty)
fmt.Println("zeqProof:", r.ZeqProof)
fmt.Println("compliance:", r.Compliance.StandardsAligned)
r.Compliance is the ZeqCompliance v1 envelope — the 13-standard regulatory record returned on every call.
Why Go here
- Backend services. Drop into a
cmd/binary and you have acomputeworker that scales horizontally without any extra glue. - CLI tools. Single static binary, fast cold-start, no runtime to ship — perfect for the Zeq CLI replacement scripts.
- Goroutine concurrency.
context.Contexteverywhere; cancel an in-flightcomputecleanly when the caller's request is closed.
Compose with
- Hosted API reference — every route the SDK wraps.
- Observer Agents — Network Tap — Go is the canonical language for the agent's pacemaker daemon variants.
Source
- Go module:
github.com/hulyasmath/zeq-go - GitHub:
packages/sdk-go/