Documentation ¶
Overview ¶
Package lscolors provides styling of filenames based on file features.
This is a reverse-engineered implementation of the parsing and interpretation of the LS_COLORS environmental variable used by GNU coreutils.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsExecutable ¶
IsExecutable returns whether the FileInfo refers to an executable file.
This is determined by permission bits on UNIX, and by file name on Windows.
Types ¶
type Colorist ¶
type Colorist interface { // GetStyle returns the style for the named file. GetStyle(fname string) string // GetStyle returns the style for the named file only by its extension. GetStyleExt(fname string) string }
Colorist styles filenames based on the features of the file.
func GetColorist ¶
Click to show internal directories.
Click to hide internal directories.