Documentation ¶
Index ¶
- Constants
- func PrintBlack(s string)
- func PrintBlue(s string)
- func PrintCyan(s string)
- func PrintGreen(s string)
- func PrintMagenta(s string)
- func PrintRed(s string)
- func PrintWhite(s string)
- func PrintYellow(s string)
- func PrintfBlack(f string, args ...interface{})
- func PrintfBlue(f string, args ...interface{})
- func PrintfCyan(f string, args ...interface{})
- func PrintfGreen(f string, args ...interface{})
- func PrintfMagenta(f string, args ...interface{})
- func PrintfRed(f string, args ...interface{})
- func PrintfWhite(f string, args ...interface{})
- func PrintfYellow(f string, args ...interface{})
- func ReadLine() (result string)
- func ReadLineWithMsg(msg string) string
- func ReadNotBlankLine() (result string)
- func ReadNotBlankLineWithMsg(msg string) string
- type ColorPrinter
- type Console
- func (c Console) ColorPrint(s string, i int)
- func (c Console) PrintBlack(s string)
- func (c Console) PrintBlue(s string)
- func (c Console) PrintCyan(s string)
- func (c Console) PrintGreen(s string)
- func (c Console) PrintMagenta(s string)
- func (c Console) PrintRed(s string)
- func (c Console) PrintWhite(s string)
- func (c Console) PrintYellow(s string)
- type XtermConsole
Constants ¶
View Source
const (
NEW_LINE_BYTE = byte(10)
)
Variables ¶
This section is empty.
Functions ¶
func PrintBlack ¶
func PrintBlack(s string)
func PrintGreen ¶
func PrintGreen(s string)
func PrintMagenta ¶
func PrintMagenta(s string)
func PrintWhite ¶
func PrintWhite(s string)
func PrintYellow ¶
func PrintYellow(s string)
func PrintfBlack ¶
func PrintfBlack(f string, args ...interface{})
func PrintfCyan ¶
func PrintfCyan(f string, args ...interface{})
func PrintfGreen ¶
func PrintfGreen(f string, args ...interface{})
func PrintfMagenta ¶
func PrintfMagenta(f string, args ...interface{})
func PrintfWhite ¶
func PrintfWhite(f string, args ...interface{})
func PrintfYellow ¶
func PrintfYellow(f string, args ...interface{})
func ReadNotBlankLine ¶
func ReadNotBlankLine() (result string)
func ReadNotBlankLineWithMsg ¶
Types ¶
type ColorPrinter ¶
type ColorPrinter interface { PrintBlack(s string) //trace PrintWhite(s string) //trace PrintRed(s string) //error PrintYellow(s string) //warn PrintGreen(s string) //info PrintBlue(s string) //blue PrintMagenta(s string) //Magenta PrintCyan(s string) //debug }
trace debug info warn error
func GetColorPrinter ¶
func GetColorPrinter() ColorPrinter
type Console ¶
type Console struct { }
define Console
func NewConsole ¶
func NewConsole() *Console
func (Console) ColorPrint ¶
func (Console) PrintGreen ¶
func (Console) PrintMagenta ¶
func (Console) PrintWhite ¶
func (Console) PrintYellow ¶
type XtermConsole ¶
XtermConsole implements ColorPrinter
func NewXtermConsole ¶
func NewXtermConsole() *XtermConsole
Source Files ¶
Click to show internal directories.
Click to hide internal directories.