8 type CustomError struct {
12 func (ce CustomError) Error() string {
16 func SomeFunc() (string, *CustomError) {
21 // Do something that creates a variable err of type error
22 _, err := os.Open("/")
27 // Then replace the err type with *CustomError
28 val, err := SomeFunc()
29 if err != nil { // want `this comparison is always true`
33 fmt.Println("No problem", val)