8 type someError struct {
12 func (e *someError) Error() string {
13 return "someError: " + e.Msg
16 func calculate() (int, *someError) {
21 err := errors.New("ERROR")
22 num, err := calculate()
23 fmt.Println(num, err, err == nil) // want `this comparison is never true`