▲ | Svip 5 days ago | |
The consumer didn't, but the error in the example is typed, it's called `MaxBytesError`. | ||
▲ | eptcyka 5 days ago | parent | next [-] | |
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. | ||
▲ | simiones 5 days ago | parent | prev [-] | |
Only since go 1.19. It was a stringy error since go 1.0 until then. |