What does this errors.As call do, and what is the resulting output?_, err := os.Open("/no/such/file") err = fmt.Errorf("startup: %w", err) var pe *os.PathError if errors.As(err, &pe) { fmt.Println("failed path:", pe.Path) }