Back to godoc.org

Package execpath

v1.6.2
Latest Go to latest

The latest major version is .

Published: Aug 30, 2020 | License: BSD-3-Clause | Module: github.com/rogpeppe/go-internal

Index

Variables

var ErrNotFound = exec.ErrNotFound

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

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.

type Error

type Error = exec.Error

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier