Help us shape the future of Go! Take the 2026 Go Developer Survey

automation

command
v0.99.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 30, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Example: the automation/agent primitives beyond plain CRUD — page-walking iterators, idempotent ensure-helpers, conditional requests, and rate-limit recovery.

Set PLATFORM_TOKEN (and optionally PLATFORM=github|gitlab|... to pick another platform). Runs three read-only demos:

  1. Each: walk every page of ListRepos lazily (no hand-rolled page loop)
  2. ConditionalRequests + polling: ETag revalidation keeps repeated reads inside the rate-limit budget
  3. RateLimitRecovery: how to back off by the server's own clock

Set ENSURE_WEBHOOK_URL as well to additionally run EnsureWebhook (the one write demo): it creates or repairs a webhook and is safe to re-run.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL