which

package
v0.0.0-...-1fa5987 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 14, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Which

func Which(program string) (string, error)

Uses the ambiant working directory and PATH variable. This should be equiviliant to the exec.LookPath stdlib function.

Types

type Query

type Query struct {
	WorkingDirectory string
	PathVariable     string
	Program          string
}

func (Query) Run

func (q Query) Run() (string, error)

TODO: Handle PATHEXT on windows for inferring `.exe` extensions, etc.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL