agent

command
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Command agent is the worked Go agent example the documentation site shows.

The site does not keep its own copy of this code. Every Go block on the agent-SDK pages is a REGION of this file, pulled in at build time by website/plugins/remark-example.mjs, so what a reader copies is what the compiler checked. Four hand-kept copies of this flow lived on the site before, and they had already drifted: one of them called len() on a struct and would not build.

Regions are delimited by "fora:example <name>" / "fora:/example <name>" comments. The marker lines never reach the page. Renaming or deleting a region fails the website build with the page and region named, so a region cannot be removed while a page still asks for it.

This file is built by `go build ./...`, which is step 5 of scripts/ci-local.sh. That is the whole point: the gate that compiles the SDK compiles its documentation too.

Jump to

Keyboard shortcuts

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