execpath

package
v0.6.8-beta.13 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2023 License: BSD-3-Clause, BSD-3-Clause Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = exec.ErrNotFound

ErrNotFound is the error resulting if a path search failed to find an executable file.

Functions

func Look

func Look(file string, getenv func(string) string) (string, error)

Look searches for an executable named file, using getenv to look up environment variables. If getenv is nil, os.Getenv will be used. If file contains a slash, it is tried directly and getenv will not be called. The result may be an absolute path or a path relative to the current directory.

Types

type Error

type Error = exec.Error

Jump to

Keyboard shortcuts

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