Video #02 — Claude API in Go Series Publish date: 2026-06-08 Type: Lightweight Est. duration: ~14 min
- How to pass a system prompt to the Claude API in Go
- Shaping Claude's persona, tone, and output format with the System field
- How system prompts persist across multi-turn conversations
- Practical examples: formal assistant, code reviewer, JSON-only responder
- Go 1.23+
ANTHROPIC_API_KEYenvironment variable set- Familiarity with basic Claude API calls (see episode 01)
export ANTHROPIC_API_KEY=your_key_here
go run main.go.
├── README.md
├── go.mod
├── go.sum
└── main.go