Is there an option in golang to fail build if a function returns a value and the returned value is not used? For example, I want an error / warning when we have:
func abc() error
and it is called without an lvalue as:
abc()
EDIT: This is not for errors alone but for return values in general.
Thanks