Documentation
¶
Index ¶
- func AsBlack(a ...interface{}) string
- func AsBlackBackground(a ...interface{}) string
- func AsBlackIntense(a ...interface{}) string
- func AsBlackIntenseBackground(a ...interface{}) string
- func AsBlinkRapid(a ...interface{}) string
- func AsBlinkSlow(a ...interface{}) string
- func AsBlue(a ...interface{}) string
- func AsBlueBackground(a ...interface{}) string
- func AsBlueIntense(a ...interface{}) string
- func AsBlueIntenseBackground(a ...interface{}) string
- func AsBold(a ...interface{}) string
- func AsConcealed(a ...interface{}) string
- func AsCrossedOut(a ...interface{}) string
- func AsCyan(a ...interface{}) string
- func AsCyanBackground(a ...interface{}) string
- func AsCyanIntense(a ...interface{}) string
- func AsCyanIntenseBackground(a ...interface{}) string
- func AsFaint(a ...interface{}) string
- func AsGreen(a ...interface{}) string
- func AsGreenBackground(a ...interface{}) string
- func AsGreenIntense(a ...interface{}) string
- func AsGreenIntenseBackground(a ...interface{}) string
- func AsItalic(a ...interface{}) string
- func AsMagenta(a ...interface{}) string
- func AsMagentaBackground(a ...interface{}) string
- func AsMagentaIntense(a ...interface{}) string
- func AsMagentaIntenseBackground(a ...interface{}) string
- func AsRed(a ...interface{}) string
- func AsRedBackground(a ...interface{}) string
- func AsRedIntense(a ...interface{}) string
- func AsRedIntenseBackground(a ...interface{}) string
- func AsReverseVideo(a ...interface{}) string
- func AsUnderline(a ...interface{}) string
- func AsWhite(a ...interface{}) string
- func AsWhiteBackground(a ...interface{}) string
- func AsWhiteIntense(a ...interface{}) string
- func AsWhiteIntenseBackground(a ...interface{}) string
- func AsYellow(a ...interface{}) string
- func AsYellowBackground(a ...interface{}) string
- func AsYellowIntense(a ...interface{}) string
- func AsYellowIntenseBackground(a ...interface{}) string
- func Clear()
- func Disable()
- func Enable()
- func JSON(v interface{}) string
- func JSONIndent(v interface{}, prefix, indent string) string
- type CachedFormatter
- func (f CachedFormatter) Print(a ...interface{})
- func (f CachedFormatter) Printf(format string, a ...interface{})
- func (f CachedFormatter) Println(a ...interface{})
- func (f CachedFormatter) Set()
- func (f CachedFormatter) Sprint(a ...interface{}) string
- func (f CachedFormatter) Sprintf(format string, a ...interface{}) string
- func (f CachedFormatter) Sprintln(a ...interface{}) string
- type Formatter
- func Black() Formatter
- func BlackBackground() Formatter
- func BlackIntense() Formatter
- func BlackIntenseBackground() Formatter
- func BlinkRapid() Formatter
- func BlinkSlow() Formatter
- func Blue() Formatter
- func BlueBackground() Formatter
- func BlueIntense() Formatter
- func BlueIntenseBackground() Formatter
- func Bold() Formatter
- func Concealed() Formatter
- func CrossedOut() Formatter
- func Cyan() Formatter
- func CyanBackground() Formatter
- func CyanIntense() Formatter
- func CyanIntenseBackground() Formatter
- func Faint() Formatter
- func Green() Formatter
- func GreenBackground() Formatter
- func GreenIntense() Formatter
- func GreenIntenseBackground() Formatter
- func Italic() Formatter
- func Magenta() Formatter
- func MagentaBackground() Formatter
- func MagentaIntense() Formatter
- func MagentaIntenseBackground() Formatter
- func Red() Formatter
- func RedBackground() Formatter
- func RedIntense() Formatter
- func RedIntenseBackground() Formatter
- func ReverseVideo() Formatter
- func Underline() Formatter
- func White() Formatter
- func WhiteBackground() Formatter
- func WhiteIntense() Formatter
- func WhiteIntenseBackground() Formatter
- func Yellow() Formatter
- func YellowBackground() Formatter
- func YellowIntense() Formatter
- func YellowIntenseBackground() Formatter
- func (f Formatter) Black() Formatter
- func (f Formatter) BlackBackground() Formatter
- func (f Formatter) BlackIntense() Formatter
- func (f Formatter) BlackIntenseBackground() Formatter
- func (f Formatter) BlinkRapid() Formatter
- func (f Formatter) BlinkSlow() Formatter
- func (f Formatter) Blue() Formatter
- func (f Formatter) BlueBackground() Formatter
- func (f Formatter) BlueIntense() Formatter
- func (f Formatter) BlueIntenseBackground() Formatter
- func (f Formatter) Bold() Formatter
- func (f Formatter) Cache() CachedFormatter
- func (f Formatter) Concealed() Formatter
- func (f Formatter) CrossedOut() Formatter
- func (f Formatter) Cyan() Formatter
- func (f Formatter) CyanBackground() Formatter
- func (f Formatter) CyanIntense() Formatter
- func (f Formatter) CyanIntenseBackground() Formatter
- func (f Formatter) Faint() Formatter
- func (f Formatter) Green() Formatter
- func (f Formatter) GreenBackground() Formatter
- func (f Formatter) GreenIntense() Formatter
- func (f Formatter) GreenIntenseBackground() Formatter
- func (f Formatter) Italic() Formatter
- func (f Formatter) Magenta() Formatter
- func (f Formatter) MagentaBackground() Formatter
- func (f Formatter) MagentaIntense() Formatter
- func (f Formatter) MagentaIntenseBackground() Formatter
- func (f Formatter) Print(a ...interface{})
- func (f Formatter) Printf(format string, a ...interface{})
- func (f Formatter) Println(a ...interface{})
- func (f Formatter) Red() Formatter
- func (f Formatter) RedBackground() Formatter
- func (f Formatter) RedIntense() Formatter
- func (f Formatter) RedIntenseBackground() Formatter
- func (f Formatter) ReverseVideo() Formatter
- func (f Formatter) Set()
- func (f Formatter) Sprint(a ...interface{}) string
- func (f Formatter) Sprintf(format string, a ...interface{}) string
- func (f Formatter) Sprintln(a ...interface{}) string
- func (f Formatter) Underline() Formatter
- func (f Formatter) White() Formatter
- func (f Formatter) WhiteBackground() Formatter
- func (f Formatter) WhiteIntense() Formatter
- func (f Formatter) WhiteIntenseBackground() Formatter
- func (f Formatter) Yellow() Formatter
- func (f Formatter) YellowBackground() Formatter
- func (f Formatter) YellowIntense() Formatter
- func (f Formatter) YellowIntenseBackground() Formatter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AsBlack ¶
func AsBlack(a ...interface{}) string
AsBlack reports Black string based on provided content
func AsBlackBackground ¶
func AsBlackBackground(a ...interface{}) string
AsBlackBackground reports Black string based on provided content
func AsBlackIntense ¶
func AsBlackIntense(a ...interface{}) string
AsBlackIntense reports Black string based on provided content
func AsBlackIntenseBackground ¶
func AsBlackIntenseBackground(a ...interface{}) string
AsBlackIntenseBackground reports Black string based on provided content
func AsBlinkRapid ¶
func AsBlinkRapid(a ...interface{}) string
AsBlinkRapid reports BlinkRapid string based on provided content
func AsBlinkSlow ¶
func AsBlinkSlow(a ...interface{}) string
AsBlinkSlow reports BlinkSlow string based on provided content
func AsBlue ¶
func AsBlue(a ...interface{}) string
AsBlue reports Blue string based on provided content
func AsBlueBackground ¶
func AsBlueBackground(a ...interface{}) string
AsBlueBackground reports Blue string based on provided content
func AsBlueIntense ¶
func AsBlueIntense(a ...interface{}) string
AsBlueIntense reports Blue string based on provided content
func AsBlueIntenseBackground ¶
func AsBlueIntenseBackground(a ...interface{}) string
AsBlueIntenseBackground reports Blue string based on provided content
func AsBold ¶
func AsBold(a ...interface{}) string
AsBold reports Bold string based on provided content
func AsConcealed ¶
func AsConcealed(a ...interface{}) string
AsConcealed reports Concealed string based on provided content
func AsCrossedOut ¶
func AsCrossedOut(a ...interface{}) string
AsCrossedOut reports CrossedOut string based on provided content
func AsCyan ¶
func AsCyan(a ...interface{}) string
AsCyan reports Cyan string based on provided content
func AsCyanBackground ¶
func AsCyanBackground(a ...interface{}) string
AsCyanBackground reports Cyan string based on provided content
func AsCyanIntense ¶
func AsCyanIntense(a ...interface{}) string
AsCyanIntense reports Cyan string based on provided content
func AsCyanIntenseBackground ¶
func AsCyanIntenseBackground(a ...interface{}) string
AsCyanIntenseBackground reports Cyan string based on provided content
func AsFaint ¶
func AsFaint(a ...interface{}) string
AsFaint reports Faint string based on provided content
func AsGreen ¶
func AsGreen(a ...interface{}) string
AsGreen reports Green string based on provided content
func AsGreenBackground ¶
func AsGreenBackground(a ...interface{}) string
AsGreenBackground reports Green string based on provided content
func AsGreenIntense ¶
func AsGreenIntense(a ...interface{}) string
AsGreenIntense reports Green string based on provided content
func AsGreenIntenseBackground ¶
func AsGreenIntenseBackground(a ...interface{}) string
AsGreenIntenseBackground reports Green string based on provided content
func AsItalic ¶
func AsItalic(a ...interface{}) string
AsItalic reports Italic string based on provided content
func AsMagenta ¶
func AsMagenta(a ...interface{}) string
AsMagenta reports Magenta string based on provided content
func AsMagentaBackground ¶
func AsMagentaBackground(a ...interface{}) string
AsMagentaBackground reports Magenta string based on provided content
func AsMagentaIntense ¶
func AsMagentaIntense(a ...interface{}) string
AsMagentaIntense reports Magenta string based on provided content
func AsMagentaIntenseBackground ¶
func AsMagentaIntenseBackground(a ...interface{}) string
AsMagentaIntenseBackground reports Magenta string based on provided content
func AsRedBackground ¶
func AsRedBackground(a ...interface{}) string
AsRedBackground reports Red string based on provided content
func AsRedIntense ¶
func AsRedIntense(a ...interface{}) string
AsRedIntense reports Red string based on provided content
func AsRedIntenseBackground ¶
func AsRedIntenseBackground(a ...interface{}) string
AsRedIntenseBackground reports Red string based on provided content
func AsReverseVideo ¶
func AsReverseVideo(a ...interface{}) string
AsReverseVideo reports ReverseVideo string based on provided content
func AsUnderline ¶
func AsUnderline(a ...interface{}) string
AsUnderline reports Underline string based on provided content
func AsWhite ¶
func AsWhite(a ...interface{}) string
AsWhite reports White string based on provided content
func AsWhiteBackground ¶
func AsWhiteBackground(a ...interface{}) string
AsWhiteBackground reports White string based on provided content
func AsWhiteIntense ¶
func AsWhiteIntense(a ...interface{}) string
AsWhiteIntense reports White string based on provided content
func AsWhiteIntenseBackground ¶
func AsWhiteIntenseBackground(a ...interface{}) string
AsWhiteIntenseBackground reports White string based on provided content
func AsYellow ¶
func AsYellow(a ...interface{}) string
AsYellow reports Yellow string based on provided content
func AsYellowBackground ¶
func AsYellowBackground(a ...interface{}) string
AsYellowBackground reports Yellow string based on provided content
func AsYellowIntense ¶
func AsYellowIntense(a ...interface{}) string
AsYellowIntense reports Yellow string based on provided content
func AsYellowIntenseBackground ¶
func AsYellowIntenseBackground(a ...interface{}) string
AsYellowIntenseBackground reports Yellow string based on provided content
func JSON ¶
func JSON(v interface{}) string
JSON repoerts string with colorized syntax of given json string This is experimental, but works on basic cases
func JSONIndent ¶
JSONIndent repoerts string with colorized syntax of given json string This is experimental, but works on basic cases
Types ¶
type CachedFormatter ¶
type CachedFormatter string
CachedFormatter prepares formatting and reuses it
func (CachedFormatter) Print ¶
func (f CachedFormatter) Print(a ...interface{})
Print is colored equivalent of fmt.Print
func (CachedFormatter) Printf ¶
func (f CachedFormatter) Printf(format string, a ...interface{})
Printf is colored equivalent of fmt.Printf
func (CachedFormatter) Println ¶
func (f CachedFormatter) Println(a ...interface{})
Println is colored equivalent of fmt.Println
func (CachedFormatter) Set ¶
func (f CachedFormatter) Set()
Set sets formatting until other formatting function or Clear is called
func (CachedFormatter) Sprint ¶
func (f CachedFormatter) Sprint(a ...interface{}) string
Sprint is colored equivalent of fmt.Sprint
func (CachedFormatter) Sprintf ¶
func (f CachedFormatter) Sprintf(format string, a ...interface{}) string
Sprintf is colored equivalent of fmt.Sprintf
func (CachedFormatter) Sprintln ¶
func (f CachedFormatter) Sprintln(a ...interface{}) string
Sprintln is colored equivalent of fmt.Sprintln
type Formatter ¶
type Formatter []attribute
Formatter is color formatter
func BlackBackground ¶
func BlackBackground() Formatter
BlackBackground reports Formatter with Black as initial format
func BlackIntense ¶
func BlackIntense() Formatter
BlackIntense reports Formatter with Black as initial format
func BlackIntenseBackground ¶
func BlackIntenseBackground() Formatter
BlackIntenseBackground reports Formatter with Black as initial format
func BlinkRapid ¶
func BlinkRapid() Formatter
BlinkRapid reports Formatter with BlinkRapid as initial format
func BlinkSlow ¶
func BlinkSlow() Formatter
BlinkSlow reports Formatter with BlinkSlow as initial format
func BlueBackground ¶
func BlueBackground() Formatter
BlueBackground reports Formatter with Blue as initial format
func BlueIntense ¶
func BlueIntense() Formatter
BlueIntense reports Formatter with Blue as initial format
func BlueIntenseBackground ¶
func BlueIntenseBackground() Formatter
BlueIntenseBackground reports Formatter with Blue as initial format
func Concealed ¶
func Concealed() Formatter
Concealed reports Formatter with Concealed as initial format
func CrossedOut ¶
func CrossedOut() Formatter
CrossedOut reports Formatter with CrossedOut as initial format
func CyanBackground ¶
func CyanBackground() Formatter
CyanBackground reports Formatter with Cyan as initial format
func CyanIntense ¶
func CyanIntense() Formatter
CyanIntense reports Formatter with Cyan as initial format
func CyanIntenseBackground ¶
func CyanIntenseBackground() Formatter
CyanIntenseBackground reports Formatter with Cyan as initial format
func GreenBackground ¶
func GreenBackground() Formatter
GreenBackground reports Formatter with Green as initial format
func GreenIntense ¶
func GreenIntense() Formatter
GreenIntense reports Formatter with Green as initial format
func GreenIntenseBackground ¶
func GreenIntenseBackground() Formatter
GreenIntenseBackground reports Formatter with Green as initial format
func MagentaBackground ¶
func MagentaBackground() Formatter
MagentaBackground reports Formatter with Magenta as initial format
func MagentaIntense ¶
func MagentaIntense() Formatter
MagentaIntense reports Formatter with Magenta as initial format
func MagentaIntenseBackground ¶
func MagentaIntenseBackground() Formatter
MagentaIntenseBackground reports Formatter with Magenta as initial format
func RedBackground ¶
func RedBackground() Formatter
RedBackground reports Formatter with Red as initial format
func RedIntense ¶
func RedIntense() Formatter
RedIntense reports Formatter with Red as initial format
func RedIntenseBackground ¶
func RedIntenseBackground() Formatter
RedIntenseBackground reports Formatter with Red as initial format
func ReverseVideo ¶
func ReverseVideo() Formatter
ReverseVideo reports Formatter with ReverseVideo as initial format
func Underline ¶
func Underline() Formatter
Underline reports Formatter with Underline as initial format
func WhiteBackground ¶
func WhiteBackground() Formatter
WhiteBackground reports Formatter with White as initial format
func WhiteIntense ¶
func WhiteIntense() Formatter
WhiteIntense reports Formatter with White as initial format
func WhiteIntenseBackground ¶
func WhiteIntenseBackground() Formatter
WhiteIntenseBackground reports Formatter with White as initial format
func YellowBackground ¶
func YellowBackground() Formatter
YellowBackground reports Formatter with Yellow as initial format
func YellowIntense ¶
func YellowIntense() Formatter
YellowIntense reports Formatter with Yellow as initial format
func YellowIntenseBackground ¶
func YellowIntenseBackground() Formatter
YellowIntenseBackground reports Formatter with Yellow as initial format
func (Formatter) BlackBackground ¶
BlackBackground reports Formatter with Black as additional format
func (Formatter) BlackIntense ¶
BlackIntense reports Formatter with Black as additional format
func (Formatter) BlackIntenseBackground ¶
BlackIntenseBackground reports Formatter with Black as additional format
func (Formatter) BlinkRapid ¶
BlinkRapid reports Formatter with BlinkRapid as additional format
func (Formatter) BlueBackground ¶
BlueBackground reports Formatter with Blue as additional format
func (Formatter) BlueIntense ¶
BlueIntense reports Formatter with Blue as additional format
func (Formatter) BlueIntenseBackground ¶
BlueIntenseBackground reports Formatter with Blue as additional format
func (Formatter) Cache ¶
func (f Formatter) Cache() CachedFormatter
Cache caches formatter for faster performance This will reduce the overhead, but you cannot edit it further Important: Make sure you formatting is not disabled
func (Formatter) CrossedOut ¶
CrossedOut reports Formatter with CrossedOut as additional format
func (Formatter) CyanBackground ¶
CyanBackground reports Formatter with Cyan as additional format
func (Formatter) CyanIntense ¶
CyanIntense reports Formatter with Cyan as additional format
func (Formatter) CyanIntenseBackground ¶
CyanIntenseBackground reports Formatter with Cyan as additional format
func (Formatter) GreenBackground ¶
GreenBackground reports Formatter with Green as additional format
func (Formatter) GreenIntense ¶
GreenIntense reports Formatter with Green as additional format
func (Formatter) GreenIntenseBackground ¶
GreenIntenseBackground reports Formatter with Green as additional format
func (Formatter) MagentaBackground ¶
MagentaBackground reports Formatter with Magenta as additional format
func (Formatter) MagentaIntense ¶
MagentaIntense reports Formatter with Magenta as additional format
func (Formatter) MagentaIntenseBackground ¶
MagentaIntenseBackground reports Formatter with Magenta as additional format
func (Formatter) Print ¶
func (f Formatter) Print(a ...interface{})
Print is colored equivalent of fmt.Print
func (Formatter) Println ¶
func (f Formatter) Println(a ...interface{})
Println is colored equivalent of fmt.Println
func (Formatter) RedBackground ¶
RedBackground reports Formatter with Red as additional format
func (Formatter) RedIntense ¶
RedIntense reports Formatter with Red as additional format
func (Formatter) RedIntenseBackground ¶
RedIntenseBackground reports Formatter with Red as additional format
func (Formatter) ReverseVideo ¶
ReverseVideo reports Formatter with ReverseVideo as additional format
func (Formatter) Set ¶
func (f Formatter) Set()
Set sets formatting until other formatting function or Clear is called
func (Formatter) WhiteBackground ¶
WhiteBackground reports Formatter with White as additional format
func (Formatter) WhiteIntense ¶
WhiteIntense reports Formatter with White as additional format
func (Formatter) WhiteIntenseBackground ¶
WhiteIntenseBackground reports Formatter with White as additional format
func (Formatter) YellowBackground ¶
YellowBackground reports Formatter with Yellow as additional format
func (Formatter) YellowIntense ¶
YellowIntense reports Formatter with Yellow as additional format
func (Formatter) YellowIntenseBackground ¶
YellowIntenseBackground reports Formatter with Yellow as additional format