Documentation
¶
Index ¶
- Constants
- func ColorizeBase(a ...interface{}) string
- func ColorizeFail(a ...interface{}) string
- func ColorizeHighlight(a ...interface{}) string
- func ColorizeInfo(a ...interface{}) string
- func ColorizeNone(a ...interface{}) string
- func ColorizeSuccess(a ...interface{}) string
- func ColorizeWarning(a ...interface{}) string
- func ContentWidth() int
- func DisableLogColor()
- func DisablePrettyLog()
- func EnableLogColor()
- func ErrF(format string, a ...interface{}) (int, error)
- func FitText(text string, options FitTextOptions) string
- func GetErrStream() io.Writer
- func GetOutStream() io.Writer
- func GetRawStreamsOutputMode() bool
- func IndentDown()
- func IndentUp()
- func Init() error
- func LogBlock(blockMessage string, options LogBlockOptions, blockFunc func())
- func LogErrorF(format string, a ...interface{})
- func LogErrorLn(a ...interface{})
- func LogF(format string, a ...interface{})
- func LogHighlightF(format string, a ...interface{})
- func LogHighlightLn(a ...interface{})
- func LogInfoF(format string, a ...interface{})
- func LogInfoLn(a ...interface{})
- func LogLn(a ...interface{})
- func LogOptionalLn()
- func LogProcess(processMessage string, options LogProcessOptions, processFunc func() error) error
- func LogProcessEnd(options LogProcessEndOptions)
- func LogProcessFail(options LogProcessEndOptions)
- func LogProcessInline(processMessage string, options LogProcessInlineOptions, ...) error
- func LogProcessStart(processMessage string, options LogProcessStartOptions)
- func LogProcessStepEnd(processMessage string, options LogProcessStepEndOptions)
- func MuteErr()
- func MuteOut()
- func OutF(format string, a ...interface{}) (int, error)
- func RawStreamsOutputModeOff()
- func RawStreamsOutputModeOn()
- func SetBaseFormat(attributes []color.Attribute)
- func SetFailFormat(attributes []color.Attribute)
- func SetHighlightFormat(attributes []color.Attribute)
- func SetInfoFormat(attributes []color.Attribute)
- func SetTag(value string, colorizeFunc func(...interface{}) string)
- func SetWarningFormat(attributes []color.Attribute)
- func SetWidth(value int)
- func UnmuteErr()
- func UnmuteOut()
- func WithIndent(f func() error) error
- func WithRawStreamsOutputModeOn(f func() error) error
- func WithTag(value string, colorizeFunc func(...interface{}) string, f func() error) error
- func WithoutIndent(decoratedFunc func() error) error
- type FitTextOptions
- type LogBlockOptions
- type LogProcessEndOptions
- type LogProcessInlineOptions
- type LogProcessOptions
- type LogProcessStartOptions
- type LogProcessStepEndOptions
- type WriterProxy
Constants ¶
View Source
const DefaultWidth = 140
Variables ¶
This section is empty.
Functions ¶
func ColorizeBase ¶
func ColorizeBase(a ...interface{}) string
func ColorizeFail ¶
func ColorizeFail(a ...interface{}) string
func ColorizeHighlight ¶
func ColorizeHighlight(a ...interface{}) string
func ColorizeInfo ¶
func ColorizeInfo(a ...interface{}) string
func ColorizeNone ¶
func ColorizeNone(a ...interface{}) string
func ColorizeSuccess ¶
func ColorizeSuccess(a ...interface{}) string
func ColorizeWarning ¶
func ColorizeWarning(a ...interface{}) string
func ContentWidth ¶
func ContentWidth() int
func DisableLogColor ¶
func DisableLogColor()
func DisablePrettyLog ¶
func DisablePrettyLog()
func EnableLogColor ¶
func EnableLogColor()
func FitText ¶
func FitText(text string, options FitTextOptions) string
func GetErrStream ¶
func GetOutStream ¶
func GetRawStreamsOutputMode ¶
func GetRawStreamsOutputMode() bool
func IndentDown ¶
func IndentDown()
func LogBlock ¶ added in v0.1.1
func LogBlock(blockMessage string, options LogBlockOptions, blockFunc func())
func LogErrorLn ¶
func LogErrorLn(a ...interface{})
func LogHighlightF ¶
func LogHighlightF(format string, a ...interface{})
func LogHighlightLn ¶
func LogHighlightLn(a ...interface{})
func LogOptionalLn ¶
func LogOptionalLn()
func LogProcess ¶
func LogProcess(processMessage string, options LogProcessOptions, processFunc func() error) error
func LogProcessEnd ¶
func LogProcessEnd(options LogProcessEndOptions)
func LogProcessFail ¶
func LogProcessFail(options LogProcessEndOptions)
func LogProcessInline ¶
func LogProcessInline(processMessage string, options LogProcessInlineOptions, processFunc func() error) error
func LogProcessStart ¶
func LogProcessStart(processMessage string, options LogProcessStartOptions)
func LogProcessStepEnd ¶
func LogProcessStepEnd(processMessage string, options LogProcessStepEndOptions)
func RawStreamsOutputModeOff ¶
func RawStreamsOutputModeOff()
func RawStreamsOutputModeOn ¶
func RawStreamsOutputModeOn()
func SetBaseFormat ¶
func SetFailFormat ¶
func SetHighlightFormat ¶
func SetInfoFormat ¶
func SetWarningFormat ¶
func WithIndent ¶
func WithoutIndent ¶
Types ¶
type FitTextOptions ¶
type LogBlockOptions ¶ added in v0.1.1
type LogProcessEndOptions ¶
type LogProcessInlineOptions ¶
type LogProcessInlineOptions struct {
ColorizeMsgFunc func(...interface{}) string
}
type LogProcessOptions ¶
type LogProcessStartOptions ¶
type LogProcessStartOptions struct {
ColorizeMsgFunc func(...interface{}) string
}
type WriterProxy ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.