Documentation ¶
Index ¶
- Constants
- type Logger
- func (l *Logger) Error(v ...interface{})
- func (l *Logger) Errorf(format string, v ...interface{})
- func (l *Logger) Fatal(v ...interface{})
- func (l *Logger) Fatalf(format string, v ...interface{})
- func (l *Logger) Info(v ...interface{})
- func (l *Logger) Infof(format string, v ...interface{})
- func (l *Logger) Log(v ...interface{})
- func (l *Logger) Logf(format string, v ...interface{})
- func (l *Logger) Output(s string) error
- func (l *Logger) Panic(v ...interface{})
- func (l *Logger) Panicf(format string, v ...interface{})
- func (l *Logger) Printf(format string, v ...interface{})
- func (l *Logger) Warn(v ...interface{})
- func (l *Logger) Warnf(format string, v ...interface{})
Constants ¶
View Source
const ( Black string = "\x1b[30m" Red string = "\x1b[31m" Green string = "\x1b[32m" Yellow string = "\x1b[33m" Blue string = "\x1b[34m" Magenta string = "\x1b[35m" Cyan string = "\x1b[36m" White string = "\x1b[37m" Reset string = "\x1b[0m" )
Text colors
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
func (*Logger) Fatal ¶
func (l *Logger) Fatal(v ...interface{})
Fatal is equivalent to l.Print() followed by a call to os.Exit(1).
Click to show internal directories.
Click to hide internal directories.