Documentation
¶
Index ¶
- Constants
- Variables
- type TConsole
- func (c *TConsole) Critical(msg ...interface{})
- func (c *TConsole) Debug(msg ...interface{})
- func (c *TConsole) Dec()
- func (c *TConsole) Disable()
- func (c *TConsole) DisableColor()
- func (c *TConsole) Enable()
- func (c *TConsole) EnableColor()
- func (c *TConsole) Error(msg ...interface{})
- func (c *TConsole) F(msg string, args ...interface{})
- func (c *TConsole) Fclose(msg ...interface{})
- func (c *TConsole) Func(fname string, msg ...interface{})
- func (c *TConsole) Get(key string, value interface{}) interface{}
- func (c *TConsole) IfError(err error, msg ...interface{})
- func (c *TConsole) Inc()
- func (c *TConsole) Info(msg ...interface{})
- func (c *TConsole) Message(msg string)
- func (c *TConsole) Print(msg ...interface{})
- func (c *TConsole) Println(msg ...interface{})
- func (c *TConsole) ResetOffset()
- func (c *TConsole) Section(sname string, msg ...interface{})
- func (c *TConsole) SectionEnd(msg ...interface{})
- func (c *TConsole) Set(key string, value interface{})
- func (c *TConsole) Stop(msg ...interface{})
- func (c *TConsole) Warning(msg ...interface{})
Constants ¶
View Source
const PSIZE = 10
Variables ¶
View Source
var CriticalPrefixStyle = pterm.Style{pterm.FgLightYellow, pterm.BgLightRed}
View Source
var DefaultSection = pterm.SectionPrinter{ Style: &DefaultStyle, Level: 0, TopPadding: 0, BottomPadding: 0, IndentCharacter: " ", }
View Source
var DefaultSpinner = pterm.SpinnerPrinter{ Sequence: []string{"▀ ", " ▀", " ▄", "▄ "}, Style: &SpinnerStyle, Delay: time.Millisecond * 200, ShowTimer: true, TimerRoundingFactor: time.Second, TimerStyle: &pterm.ThemeDefault.TimerStyle, MessageStyle: &SpinnerTextStyle, SuccessPrinter: &pterm.Success, FailPrinter: &pterm.Error, WarningPrinter: &pterm.Warning, }
View Source
var DefaultStyle = pterm.Style{pterm.FgDefault}
View Source
var ErrorPrefixStyle = pterm.Style{pterm.FgBlack, pterm.BgLightRed}
View Source
var ErrorStyle = pterm.Style{pterm.FgLightRed}
View Source
var FunctionPrefixStyle = pterm.Style{pterm.FgLightWhite, pterm.BgGray}
View Source
var SpinnerStyle = pterm.Style{pterm.FgLightRed}
Functions ¶
This section is empty.
Types ¶
type TConsole ¶
type TConsole struct {
// contains filtered or unexported fields
}
func (*TConsole) DisableColor ¶
func (c *TConsole) DisableColor()
func (*TConsole) EnableColor ¶
func (c *TConsole) EnableColor()
func (*TConsole) ResetOffset ¶
func (c *TConsole) ResetOffset()
func (*TConsole) SectionEnd ¶
func (c *TConsole) SectionEnd(msg ...interface{})
Source Files
¶
Click to show internal directories.
Click to hide internal directories.

