# Packages

No description provided by the author
No description provided by the author
No description provided by the author

# Functions

First returns a locator that returns the first non-empty match.
GetPath returns a colon-separated path value that can be used to set the PATH environment variable.
GetPaths returns a list of paths for a specified root.
NewCharDeviceLocator creates a Locator that can be used to find char devices at the specified root.
NewDirectoryLocator creates a Locator that can be used to find directories at the specified root.
NewExecutableLocator creates a locator to fine executable files in the path.
NewFileLocator creates a Locator that can be used to find files with the specified builder.
No description provided by the author
NewLibraryLocator creates a library locator using the specified options.
NewSymlinkChainLocator creats a locator that can be used for locating files through symlinks.
NewSymlinkLocator creats a locator that can be used for locating files through symlinks.
WithCount sets the maximum number of candidates to discover.
WithFilter sets the filter for the file locator The filter is called for each candidate file and candidates that return nil are considered.
WithLogger sets the logger for the file locator.
WithOptional sets the optional flag for the file locator If the optional flag is set, the locator will not return an error if the file is not found.
WithRoot sets the root for the file locator.
WithSearchPaths sets the search paths for the file locator.

# Variables

ErrNotFound indicates that a specified pattern or file could not be found.

# Structs

LocatorMock is a mock implementation of Locator.

# Interfaces

Locator defines the interface for locating files on a system.

# Type aliases

Option defines a function for passing builder to the NewFileLocator() call.