Consider the following:
package main
import (
"errors"
"fmt"
)
func foo() error {
return errors.New("Danger!")
}
func main() {
foo();
fmt.Println("I don't have a care in the world!")
}
It would be nice if there was an easy way to see that possible errors from foo() are not being handled. Does Go have a built-in way to check programs/source files for errors that nothing has been done with?