A Custom http.RoundTripper Is the Cleanest Place for Cross-Cutting HTTP Concerns

go dev.to

Book: Hexagonal Architecture in Go Also by me: Thinking in Go (2-book series) — Complete Guide to Go Programming + Hexagonal Architecture in Go My project: Hermes IDE | GitHub — an IDE for developers who ship with Claude Code and other AI coding tools Me: xgabriel.com | GitHub You've seen this codebase. Every outbound call is wrapped in three lines that add the auth header. Five for logging. Eight for retrying 5xx. Each call site does it slightly differently, so half forget the trac

Read Full Tutorial open_in_new
arrow_back Back to Tutorials