Documentation
¶
Overview ¶
Package winpath is useful for managing PATH as part of the Environment in the Windows HKey Local User registry. It returns an error for most operations on non-Windows systems.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CommonExtensions = []string{"", ".exe", ".bat"}
Functions ¶
func GetExecutablePath ¶ added in v0.0.4
func IndexOf ¶
IndexOf searches the given path list for first occurence of the given path entry and returns the index, or -1
func NormalizePathEntry ¶
NormalizePathEntry will return the given directory path relative from its absolute path to the %USERPROFILE% (home) directory.
Types ¶
Click to show internal directories.
Click to hide internal directories.