← Back to context

Comment by Svip

2 months ago

The consumer didn't, but the error in the example is typed, it's called `MaxBytesError`.

Matching the underlying type when using an interface never feels natural and is definitely the more foreign part of Go's syntax to people who are not super proficient with it. Thus, they fall back on what they know - string comparison.