Documentation ¶
Index ¶
- Constants
- func Black(format string, a ...interface{}) (n int, err error)
- func BlackString(format string) string
- func BlackTitle(format string, a ...interface{}) (n int, err error)
- func Blue(format string, a ...interface{}) (n int, err error)
- func BlueString(format string) string
- func BlueTitle(format string, a ...interface{}) (n int, err error)
- func Cyan(format string, a ...interface{}) (n int, err error)
- func CyanString(format string) string
- func CyanTitle(format string, a ...interface{}) (n int, err error)
- func Green(format string, a ...interface{}) (n int, err error)
- func GreenString(format string) string
- func GreenTitle(format string, a ...interface{}) (n int, err error)
- func Magenta(format string, a ...interface{}) (n int, err error)
- func MagentaString(format string) string
- func MagentaTitle(format string, a ...interface{}) (n int, err error)
- func Red(format string, a ...interface{}) (n int, err error)
- func RedString(format string) string
- func RedTitle(format string, a ...interface{}) (n int, err error)
- func Status(statuscode int) (status string)
- func String(format string, value ...string) string
- func White(format string, a ...interface{}) (n int, err error)
- func WhiteString(format string) string
- func WhiteTitle(format string, a ...interface{}) (n int, err error)
- func Yellow(format string, a ...interface{}) (n int, err error)
- func YellowString(format string) string
- func YellowTitle(format string, a ...interface{}) (n int, err error)
Constants ¶
View Source
const ( FgBlack = "\x1b[30m" FgRed = "\x1b[31m" FgGreen = "\x1b[32m" FgYellow = "\x1b[33m" FgBlue = "\x1b[34m" FgMagenta = "\x1b[35m" FgCyan = "\x1b[36m" FgWhite = "\x1b[37m" )
Base Colours
View Source
const ( Reset = "\x1b[0m" Bold = "\x1b[1m" Underscore = "\x1b[4m" Reverse = "\x1b[7m" Hidden = "\x1b[8m" )
Text Attributes
Variables ¶
This section is empty.
Functions ¶
func BlackString ¶
BlackString formats string with black text
func BlackTitle ¶
BlackTitle Printf with bold black
func GreenString ¶
GreenString formats string with green text
func GreenTitle ¶
GreenTitle Printf with bold green
func MagentaString ¶
MagentaString formats string with magenta text
func MagentaTitle ¶
MagentaTitle Printf with bold magenta
func WhiteString ¶
WhiteString formats string with white text
func WhiteTitle ¶
WhiteTitle Printf with bold white
func YellowString ¶
YellowString formats string with yellow text
func YellowTitle ¶
YellowTitle Printf with bold yellow
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.