Documentation
¶
Overview ¶
Package lscolors provides methods for colorizing file names based on colors from dircolors
Index ¶
Examples ¶
Constants ¶
View Source
const RESET_SEQ = "\033[0m"
RESET_SEQ is ANSI reset sequence
Variables ¶
This section is empty.
Functions ¶
func Colorize ¶
Colorize return file name with ANSI control sequences
Example ¶
file := "myfile.txt" fmt.Println(Colorize(file))
Output:
func ColorizePath ¶ added in v12.46.0
Colorize return path with ANSI control sequences
Example ¶
path := "/home/john/myfile.txt" fmt.Println(ColorizePath(path))
Output:
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.