SA9008
Error prone
Warning
Value refers to the result of a failed type assertion and is a zero value, not the value that was being type-asserted.
Go is a very powerful language that makes you write performant code while having a lot of verification. Still, developers can make issues. Thankfully, the Codiga Static Code Analysis engine checks your Go code and flags the most important issues.
Value refers to the result of a failed type assertion and is a zero value, not the value that was being type-asserted.
We use cookies to improve your site experience, including analytics cookies to understand how you use our product and design better experiences. Please read our Cookie Policy.