polyfloyd / go-errorlint

A source code linter that can be used to find code that will cause problems with Go's error wrapping scheme
MIT License
248 stars 19 forks source link

Add exception for encoding/json.decoder.Token #82

Closed kolyshkin closed 3 months ago

kolyshkin commented 3 months ago

As noted in https://pkg.go.dev/encoding/json#Decoder.Token, it can return io.EOF.

Add a test case.