Documentation
¶
Index ¶
- Constants
- Variables
- func Assert(v ...interface{})
- func Debug(v ...interface{})
- func Debugf(format string, v ...interface{})
- func Error(v ...interface{})
- func Errorf(format string, v ...interface{})
- func Exit(v interface{})
- func Info(v ...interface{})
- func Infof(format string, v ...interface{})
- func NewDefaultLogger() *defaultLogger
- func NewList() *list
- func NewTable() *table
- func OneLine(format string, v ...interface{})
- func Printf(format string, v ...interface{})
- func Println(v ...interface{})
- func SetFlags(v int)
- func SetLogger(logger Logger)
- func Warning(v ...interface{})
- func Warningf(format string, v ...interface{})
- type Color
- type Logger
Constants ¶
View Source
const ( NONE = 0 STATUS = 1 << iota DATE FILE )
View Source
const Asc = tab.Asc
View Source
const Dec = tab.Dsc
Variables ¶
View Source
var DefaultLogger *defaultLogger
Functions ¶
func NewDefaultLogger ¶ added in v1.1.6
func NewDefaultLogger() *defaultLogger
Types ¶
type Color ¶
type Color int
const ( Reset Color = iota Bold Faint Italic Underline BlinkSlow BlinkRapid ReverseVideo Concealed CrossedOut )
Base colors -- attributes in reality
Foreground colors
const ( FgHiBlack Color = iota + 90 FgHiRed FgHiGreen FgHiYellow FgHiBlue FgHiMagenta FgHiCyan FgHiWhite )
Foreground Hi-Intensity colors
Background colors
Click to show internal directories.
Click to hide internal directories.