A Claude Client in One Go File
go
dev.to
Last week I wrote a Claude client in bash, parsed the stream with regular expressions, and pinned it as the thing to beat. This week it's Go, which has it rather easy by comparison. Go is the first language in the series where the standard library covers everything the spec asks for: an HTTP client with TLS, a JSON codec, a buffered line reader, and a timezone database baked into the binary. The whole client is 175 lines in one file, and it runs from a scratch image. The code is at github.com/