You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you for the great library - we use it daily. Recently we ran into a small issue.
This is a go vet bug in my opinion, but until that is addressed, people running go vet on their code (including /vendor folder) will run into the following warning when using the Error handler:
arg (*Context).Error in Error call is a function value, not a function call
You can also see this by running go vet in the root of this project. I think go vet is incorrectly picking up keywords here (error, panic, etc) and incorrectly reporting that warning, as renaming Error to Panic also fails, where OnError passes (for example).
The text was updated successfully, but these errors were encountered:
Hello!
Thank you for the great library - we use it daily. Recently we ran into a small issue.
This is a
go vet
bug in my opinion, but until that is addressed, people runninggo vet
on their code (including/vendor
folder) will run into the following warning when using theError
handler:arg (*Context).Error in Error call is a function value, not a function call
You can also see this by running
go vet
in the root of this project. I thinkgo vet
is incorrectly picking up keywords here (error, panic, etc) and incorrectly reporting that warning, as renamingError
toPanic
also fails, whereOnError
passes (for example).The text was updated successfully, but these errors were encountered: