Documentation ¶
Overview ¶
ancli is a simple suite of reusable ansi cli functions It's like ansi cli, and the "c" sounds like "si", so it becomes an"si"li? get it? It's very funny.
Index ¶
- Constants
- Variables
- func ColoredMessage(cc colorCode, msg string) string
- func PrintErr(msg string)
- func PrintNotice(msg string)
- func PrintOK(msg string)
- func PrintWarn(msg string)
- func PrintfErr(msg string, a ...any)
- func PrintfNotice(msg string, a ...any)
- func PrintfOK(msg string, a ...any)
- func PrintfWarn(msg string, a ...any)
- func SetupSlog()
Constants ¶
View Source
const ( RED colorCode = iota + 31 GREEN YELLOW BLUE MAGENTA CYAN )
Variables ¶
Functions ¶
func ColoredMessage ¶ added in v1.3.6
func PrintNotice ¶ added in v1.3.13
func PrintNotice(msg string)
func PrintfNotice ¶ added in v1.3.13
func PrintfWarn ¶ added in v1.3.13
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.