Back to Go Micro

Learn by Example

internal/website/docs/examples/index.md

6.3.122.9 KB
Original Source

Learn by Example

Runnable examples are the fastest way to move from reading the guides to changing one thing. Start with the path that matches where you are in the services → agents → workflows lifecycle.

Start here

GoalRunnable exampleWhy it is useful
0→1 serviceexamples/hello-worldSmallest RPC service with a client call and health checks.
First service-backed agentexamples/agent-demoMulti-service project/task/team app with agent playground integration.
0→hero lifecycleexamples/supportNo-secret support-desk story: typed services, an agent, an event-driven flow, and a guardrail.
Planning and delegationexamples/agent-plan-delegateTwo agents collaborate through plan and delegate over normal Go Micro RPC.
Durable workflowsexamples/flow-durableOrdered, checkpointed flow steps resume without duplicating completed side effects.
AI-callable servicesexamples/mcpMCP examples that expose service endpoints as model tools.

Guide-to-example map

Repository examples

See the repository examples index for the complete runnable list, including deployment, auth, gRPC interop, MCP, agent, and flow examples.

More