execpath

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Resolve

func Resolve(name string) (string, error)

Resolve finds an executable by name in fixed system directories only. It intentionally does not read PATH, avoiding writable-directory hijacks.

func ResolveInDirs

func ResolveInDirs(name string, dirs []string) (string, error)

func ValidateAbsoluteExecutable

func ValidateAbsoluteExecutable(path string) error

ValidateAbsoluteExecutable requires an explicit absolute path to a regular executable file. It is used for opt-in overrides where PATH lookup would reintroduce executable-hijacking risk.

Types

This section is empty.

Jump to

Keyboard shortcuts

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