Video #05 — Claude API in Go Series
Publish date: 2026-06-29
Type: Heavy
Est. duration: ~38 min
- Defining tools as Go structs with JSON Input Schemas
- Sending tools to Claude alongside your messages
- Handling
tool_usestop reason andToolUseBlockresponses - Executing your own Go functions when Claude requests them
- Feeding
tool_resultblocks back and completing the loop
- Go 1.23+
- An Anthropic API key
- Familiarity with episodes 01–04 (completions, system prompts, streaming, structured output)
cd 05-tool-use
export ANTHROPIC_API_KEY=your_key_here
go run main.go.
├── README.md
├── go.mod
├── go.sum
└── main.go