SA9008
Error prone
Medium
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.