A File Storage Port in Go That Streams: io.Reader In, Disk and S3 Adapters Out

go dev.to

Book: Hexagonal Architecture in Go Also by me: Pocket Guides for Developers — the 8-book series My project: Hermes IDE | GitHub — an IDE for developers who ship with Claude Code and other AI coding tools Me: xgabriel.com | GitHub Your storage port looks clean: Save(ctx, key string, data []byte) error. The domain never touches the filesystem, the S3 adapter sits behind the interface, and the tests use a map. Then someone uploads a 2 GB video. To call Save, the HTTP handler has to pro

Read Full Tutorial open_in_new
arrow_back Back to Tutorials