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
The text was updated successfully, but these errors were encountered:
wwcchh0123
changed the title
comparing with == will fail on wrapped errors. Use errors.Is to check for a specific error (errorlint)
comparing with == will fail on wrapped errors. Use errors.Is to check for a specific error (errorlint)
Nov 11, 2024
lint 解释
errors.Is()
。errors.Is()
是 Go 语言中用于错误处理的一个函数,用于检查一个错误是否匹配某个特定的错误或是否在错误链中。错误示例
正确示例
The text was updated successfully, but these errors were encountered: