← Back to blog

Start With the Struct, Not the Interface

When I start a new feature in Go I keep reaching for the interface first. That order is wrong: write the concrete struct, and let interfaces show up at whatever consumes the dependency.

Written by Denys Dovzhenko