Documentation
¶
Index ¶
Constants ¶
View Source
const ( ColorRed = "red" ColorGreen = "green" ColorYellow = "yellow" ColorBlue = "blue" ColorMagenta = "magenta" ColorCyan = "cyan" ColorWhite = "white" )
Variables ¶
View Source
var ColorsFuncMap = template.FuncMap{ ColorRed: color.New(color.FgRed).SprintfFunc(), ColorGreen: color.New(color.FgGreen).SprintfFunc(), ColorYellow: color.New(color.FgYellow).SprintfFunc(), ColorBlue: color.New(color.FgBlue).SprintfFunc(), ColorMagenta: color.New(color.FgMagenta).SprintfFunc(), ColorCyan: color.New(color.FgCyan).SprintfFunc(), ColorWhite: color.New(color.FgWhite).SprintfFunc(), }
Functions ¶
func CheckAndExit ¶
func CheckAndExit(err error)
func GetColorFuncName ¶
func GetColorFuncName() string
func ShortenString ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.