package
0.0.0-20181025162720-c8a214aafdbb
Repository: https://github.com/turbinelabs/nonstdlib.git
Documentation: pkg.go.dev

# Packages

Package exec provides extensions of the os/exec package that provides streamlined execution of a command.

# Functions

New produces a new OS backed by the golang os package.
NewDirReader constructs a new DirReader for the given path name.
NewMockDirReader creates a new mock instance.
NewMockFileInfo creates a new mock instance.
NewMockOS creates a new mock instance.
ReadIfNonEmpty will read from an os.File only if non-empty; otherwise it will return an empty string.

# Structs

MockDirReader is a mock of DirReader interface.
MockDirReaderMockRecorder is the mock recorder for MockDirReader.
MockFileInfo is a mock of FileInfo interface.
MockFileInfoMockRecorder is the mock recorder for MockFileInfo.
MockOS is a mock of OS interface.
MockOSMockRecorder is the mock recorder for MockOS.

# Interfaces

DirReader reads or reads and filters directory entries.
OS is an interface on top of commonly used functions and variables from the golang os package, for easier testing.

# Type aliases

DirEntryFilter is a function that filters directory entries by returning true for directories that should be accepted.