Skip to content

jonhadfield/findexec

Folders and files

NameName
Last commit message
Last commit date

Latest commit

78db24c · Sep 2, 2019

History

3 Commits
Aug 31, 2019
Aug 31, 2019
Aug 31, 2019
Aug 31, 2019
Sep 2, 2019
Aug 31, 2019
Aug 31, 2019
Aug 31, 2019
Aug 31, 2019

Repository files navigation

findexec

travisci codecov Go Report Card GoDoc

A go library to find paths of executables

Usage

package main

import "github.com/jonhadfield/findexec"

func main() {
    // find an executable called "diff" without specifying paths which will force
    // searching of the system paths found in environment variable 'PATH'
    _ = findexec.Find("diff", "")
    
    // find an executable called "bash" in specific paths
    _ = findexec.Find("bash", "/home/bin:/bin:/usr/local/bin")
}

License

The source code is made available under the terms of the Unlicense License, as stated in the file LICENSE.

Credits

This is rewrite of the find_executable() function provided in the python 2 standard library.

Releases

No releases published

Packages

No packages published