err := readConfig()// *** before: ***if err == ErrNotFound { // never true: err is wrapped by fmt.Errorf}// *** in version 1.13: ***if errors.Is(err, ErrNotFound) { fmt.Println("config not found")}