Lines Matching refs:if
13 // ErrNotFound is the error resulting if a path search failed to find an executable file.
18 if err != nil {
21 if d.IsDir() {
29 if i < 0 {
36 if len(exts) == 0 {
39 if hasExt(file) {
40 if chkStat(file) == nil {
45 if f := file + e; chkStat(f) == nil {
54 // If file contains a slash, it is tried directly and the PATH is not consulted.
60 if x == `` {
65 if e == "" {
68 if e[0] != '.' {
73 if strings.IndexAny(file, `:\/`) != -1 {
74 if f, err = findExecutable(file, exts); err == nil {
79 if f, err = findExecutable(`.\`+file, exts); err == nil {
82 if pathenv := os.Getenv(`PATH`); pathenv != `` {
84 if f, err = findExecutable(dir+`\`+file, exts); err == nil {
96 if path == "" {
117 if strings.Contains(s, `"`) {