Documentation ¶
Index ¶
- func Action(actionName string, msg string)
- func Actionf(actionName string, msg string, v ...interface{})
- func Blue(msg string) string
- func Bluef(msg string, v ...interface{}) string
- func Bold(msg string) string
- func BoldBlue(msg string) string
- func BoldBluef(msg string, v ...interface{}) string
- func BoldCyan(msg string) string
- func BoldCyanf(msg string, v ...interface{}) string
- func BoldGreen(msg string) string
- func BoldGreenf(msg string, v ...interface{}) string
- func BoldRed(msg string) string
- func BoldRedf(msg string, v ...interface{}) string
- func BoldYellow(msg string) string
- func BoldYellowf(msg string, v ...interface{}) string
- func Boldf(msg string, v ...interface{}) string
- func Clear()
- func Colour(code string, msg string) string
- func Colourf(code string, msg string, v []interface{}) string
- func CursorBackward(amount int)
- func CursorDown(amount int)
- func CursorForward(amount int)
- func CursorUp(amount int)
- func Cyan(msg string) string
- func Cyanf(msg string, v ...interface{}) string
- func Dim(msg string) string
- func DimBlue(msg string) string
- func DimBluef(msg string, v ...interface{}) string
- func DimCyan(msg string) string
- func DimCyanf(msg string, v ...interface{}) string
- func DimGreen(msg string) string
- func DimGreenf(msg string, v ...interface{}) string
- func DimRed(msg string) string
- func DimRedf(msg string, v ...interface{}) string
- func DimYellow(msg string) string
- func DimYellowf(msg string, v ...interface{}) string
- func Dimf(msg string, v ...interface{}) string
- func EraseInLine()
- func Error(msg string)
- func Errorf(msg string, v ...interface{})
- func Green(msg string) string
- func Greenf(msg string, v ...interface{}) string
- func HighlightSource(source string) string
- func HighlightSourcef(source string, v ...interface{}) string
- func Info(msg string)
- func Infof(msg string, v ...interface{})
- func List(items []string, numColumns int, columnWidth int)
- func Red(msg string) string
- func Redf(msg string, v ...interface{}) string
- func Table(headers []string, rows ...[]string)
- func Warn(msg string)
- func Warnf(msg string, v ...interface{})
- func Yellow(msg string) string
- func Yellowf(msg string, v ...interface{}) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Action ¶
Action outputs a specific named action, and a accompying message
For example
Action("Created", "Resource `Legacy`")
func Actionf ¶
Actionf is identical to Action, except that the msg will be formated according to the format specifier
For example
Actionf("Created", "Resource `%s`", resourceName)
func Bluef ¶
Bluef returns a blue string, except that the msg will be formated according to the format specifier
func BoldBluef ¶
BoldBluef returns a BoldBlue string, except that the msg will be formated according to the format specifier
func BoldCyanf ¶
BoldCyanf returns a BoldCyan string, except that the msg will be formated according to the format specifier
func BoldGreenf ¶
BoldGreenf returns a BoldGreen string, except that the msg will be formated according to the format specifier
func BoldRedf ¶
BoldRedf returns a BoldRed string, except that the msg will be formated according to the format specifier
func BoldYellowf ¶
BoldYellowf returns a BoldYellow string, except that the msg will be formated according to the format specifier
func Boldf ¶
Boldf returns a bold string, except that the msg will be formated according to the format specifier
func Colourf ¶
Colourf returns a string, except that the msg will be formated according to the format specifier
func CursorBackward ¶
func CursorBackward(amount int)
CursorBackward moves the cursor backward the desired amount, relative to the current position
func CursorDown ¶
func CursorDown(amount int)
CursorDown moves the cursor down the desired amount, relative to the current position
func CursorForward ¶
func CursorForward(amount int)
CursorForward moves the cursor forward the desired amount, relative to the current position
func CursorUp ¶
func CursorUp(amount int)
CursorUp moves the cursor up the desired amount, relative to the current position
func Cyanf ¶
Cyanf returns a Cyan string, except that the msg will be formated according to the format specifier
func DimBluef ¶
DimBluef returns a DimBlue string, except that the msg will be formated according to the format specifier
func DimCyanf ¶
DimCyanf returns a DimCyan string, except that the msg will be formated according to the format specifier
func DimGreenf ¶
DimGreenf returns a DimGreen string, except that the msg will be formated according to the format specifier
func DimRedf ¶
DimRedf returns a DimRed string, except that the msg will be formated according to the format specifier
func DimYellowf ¶
DimYellowf returns a DimYellow string, except that the msg will be formated according to the format specifier
func Dimf ¶
Dimf returns a dim string, except that the msg will be formated according to the format specifier
func Error ¶
func Error(msg string)
Error outputs the message, highlighted to indicate that it's an error
For example
Error("Resource `Legacy` was invalid")
func Errorf ¶
func Errorf(msg string, v ...interface{})
Errorf is identical to Error, except that the msg will be formated according to the format specifier
For example
Errorf("Resource `%s` was invalid: %v", resourceName, err)
func Greenf ¶
Greenf returns a Green string, except that the msg will be formated according to the format specifier
func HighlightSource ¶
HighlightSource returns a string colour to indicate that the contents represents source code.
func HighlightSourcef ¶
HighlightSourcef returns a string colour to indicate that the contents represents source code.
func Infof ¶
func Infof(msg string, v ...interface{})
Infof is identical to Info, except that the msg will be formated according to the format specifier
func Redf ¶
Redf returns a Red string, except that the msg will be formated according to the format specifier
func Warn ¶
func Warn(msg string)
Warn outputs the message, highlighted to indicate that it's a warning
For example
Warn("Resource `Legacy` already existed, ignored")
Types ¶
This section is empty.