-
Notifications
You must be signed in to change notification settings - Fork 141
Open
Labels
Description
While writing a similar tool, I ended up spending some time pondering under what circumstances Go allows a value to be generated-but-not-consumed. And there aren't all that many; it's mostly function call return values, since functions could have side-effects.
So could channel receives. So consider:
func foo(x chan error) {
<-x
}
I would argue that this constitutes "failing to check an error".