Back to Go Micro

Examples wayfinding

examples/INDEX.md

6.4.02.5 KB
Original Source

Examples wayfinding

Use this index when you want the shortest path from a first runnable agent to the next services, agents, workflows, and interop examples. Every command below is provider-free unless the example README says otherwise.

Pick by goal

GoalStart hereRun or verifyThen try
Run the smallest no-secret agentfirst-agentgo run ./examples/first-agentagent-demo for a larger service-backed agent
Prove the maintained 0→hero pathsupportgo run ./examples/support and go test ./examples/supportzero-to-hero guide
See planning and delegationagent-plan-delegatego run ./examples/agent-plan-delegateplan-delegate guide
Expose services through MCPmcp/hellofollow mcp setupmcp/crud and mcp/workflow
Try A2A or gRPC interop nextagent-demo plus gateway docsrun the example, then use the gateway docsgrpc-interop
Add workflow durabilityflow-durablego run ./examples/flow-durableflow-loop
  1. First service: run hello-world to learn service registration, handlers, client calls, and health checks.
  2. First agent: run first-agent with go run ./examples/first-agent; it uses a deterministic mock model and needs no provider key.
  3. 0→hero reference: run support with go run ./examples/support; it keeps typed services, an agent chat loop, an event-driven flow, and an approval gate in one maintained example.
  4. Interop next: use mcp/hello, mcp/crud, and mcp/workflow when you are ready to expose tools to external AI clients.
  5. Workflow depth: use flow-durable once the agent path needs checkpointed, resumable deterministic work.

CLI wayfinding

The installed CLI prints the same path:

bash
micro examples
micro agent demo
micro zero-to-hero

Keep this file, README.md, and the micro examples output in sync so new developers can find examples/first-agent and examples/support from one documented path.