LookPath is an alias for exec.LookPath. It searches for an executable named file in the directories named by the PATH environment variable. If file contains a slash, it is tried directly and the PATH is not consulted. The result may be an absolute path or a path relative to the current directory.
(file string)
| 21 | // contains a slash, it is tried directly and the PATH is not consulted. The |
| 22 | // result may be an absolute path or a path relative to the current directory. |
| 23 | func LookPath(file string) (string, error) { |
| 24 | return exec.LookPath(file) |
| 25 | } |
| 26 | |
| 27 | // IsWSL returns true if Windows Subsystem for Linux is detected. |
| 28 | // |
no outgoing calls
no test coverage detected
searching dependent graphs…