Two false negatives here when using the -asserts flag:
package main
func main() {
var i interface{} = "hello"
_ = handleInterface(i)
handleString(i.(string)) // This should be reported but isn't
}
func handleInterface(i interface{}) string {
return i.(string) // This should be reported but isn't
}
func handleString(s string) {}
Two false negatives here when using the
-asserts
flag: