Go client for the Actx0 platform.
go get github.com/Actx0/Gctx0package main
import (
"context"
"github.com/Actx0/Gctx0"
)
func main() {
client := gctx0.NewKnowledge(
gctx0.WithAccessKey("your-access-key"),
gctx0.WithWorkspaceId("your-workspace-id"),
)
defer client.Close()
_, _ = client.List(context.Background(), 50, 0)
}Or use the full client when you need multiple API areas:
client := gctx0.NewClient(
gctx0.WithAccessKey("your-access-key"),
gctx0.WithWorkspaceId("your-workspace-id"),
)
defer client.Close()
_, _ = client.Health(context.Background())
_, _ = client.Knowledge.List(context.Background(), 50, 0)go test ./...
go build ./examples/...