Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumGoerrors.Is and errors.AsSingle-choice MCQ

Given these wrapped errors, what does the program print?

var ErrNotFound = errors.New("not found") var ErrPermission = errors.New("permission denied") err := fmt.Errorf("load config: %w", ErrNotFound) fmt.Println(errors.Is(err, ErrNotFound), errors.Is(err, ErrPermission))