Documentation ¶
Overview ¶
Package file provides helpers to work with files.
Index ¶
Constants ¶
View Source
const (
UserPath = "PATH"
)
Variables ¶
View Source
var ( ErrCloseFile = errors.New("file: file close error") ErrFileNotFound = errors.New("file: file not found") ErrInvalidFilename = errors.New("file: invalid filename") ErrInvalidTriplet = errors.New("file: invalid triplet") ErrOpenFile = errors.New("file: failed to open file") ErrScanFile = errors.New("file: file scan error") )
Functions ¶
func BinaryMode ¶ added in v1.0.38
BinaryMode returns the file mode of filename in binary digits.
func GetStrings ¶ added in v1.0.49
GetStrings reads all lines from filename and returns a slice of string.
func IsExecutableInPath ¶ added in v1.0.38
IsExecutableInPath returns true if filename is an executable and exists in the user PATH.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.