Y
Hacker News
new
|
ask
|
show
|
jobs
by
Svip
575 days ago
The consumer didn't, but the error in the example is typed, it's called `MaxBytesError`.
2 comments
eptcyka
575 days ago
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.
link
simiones
575 days ago
Only since go 1.19. It was a stringy error since go 1.0 until then.
link