Using go-genai with googleapis.com

Go integration

✓ Official SDK
Install
go get github.com/googleapis/go-genai
Quick start
import "go-genai"

// Initialize client
client := go-genai.NewClient("YOUR_ACCESS_TOKEN")
Get a trace sink by name under the parent resource (GCP project).
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  https://cloudtrace.googleapis.com/v2beta1/{name}
List all sinks for the parent resource (GCP project).
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  https://cloudtrace.googleapis.com/v2beta1/{parent}/traceSinks
SDK on GitHub 📄 API Docs
SDK
go-genai
Go
API
googleapis.com
googleapis.com:cloudtrace
At a glance
Language Go
Endpoints5
Base URLhttps://cloudtrace.googleapis.com
✓ Official