Documentation
¶
Index ¶
- Variables
- func Println(a ...interface{}) (n int, err error)
- type Logger
- func (logger *Logger) Channel() chan Message
- func (logger *Logger) Close()
- func (logger *Logger) Debug(format string, a ...interface{})
- func (logger *Logger) EnableChannel()
- func (logger *Logger) Error(format string, a ...interface{})
- func (logger *Logger) Info(format string, a ...interface{})
- func (logger *Logger) Print(msg chat.Message)
- func (logger *Logger) Warn(format string, a ...interface{})
- type Message
Constants ¶
This section is empty.
Variables ¶
View Source
var C = color.Color{color.FgCyan}.Colorize
View Source
var HR = color.Color{color.FgRed}.Colorize
Functions ¶
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
func (*Logger) EnableChannel ¶
func (logger *Logger) EnableChannel()
Click to show internal directories.
Click to hide internal directories.