Documentation ¶
Index ¶
- Variables
- func Close()
- func Debug(format string, a ...interface{})
- func Error(format string, a ...interface{})
- func Export(logger *Logger)
- func Fatal(format string, a ...interface{})
- func Release(format string, a ...interface{})
- func SDebug(a ...interface{})
- func SError(a ...interface{})
- func SFatal(a ...interface{})
- func SRelease(a ...interface{})
- func SStack(a ...interface{})
- func SWarning(a ...interface{})
- func Stack(format string, a ...interface{})
- func Warning(format string, a ...interface{})
- type Buffer
- func (b *Buffer) AppendBool(v bool)
- func (b *Buffer) AppendByte(v byte)
- func (b *Buffer) AppendBytes(v []byte)
- func (b *Buffer) AppendFloat(f float64, bitSize int)
- func (b *Buffer) AppendInt(i int64)
- func (b *Buffer) AppendString(s string)
- func (b *Buffer) AppendUint(i uint64)
- func (b *Buffer) Bytes() []byte
- func (b *Buffer) Cap() int
- func (buff *Buffer) Init()
- func (b *Buffer) Len() int
- func (buff *Buffer) Locker()
- func (b *Buffer) Reset()
- func (b *Buffer) String() string
- func (b *Buffer) TrimNewline()
- func (buff *Buffer) UnLocker()
- func (b *Buffer) Write(bs []byte) (int, error)
- type Logger
- func (logger *Logger) Close()
- func (logger *Logger) Debug(format string, a ...interface{})
- func (logger *Logger) Error(format string, a ...interface{})
- func (logger *Logger) Fatal(format string, a ...interface{})
- func (logger *Logger) GenDayFile(now *time.Time) error
- func (logger *Logger) Release(format string, a ...interface{})
- func (logger *Logger) Stack(format string, a ...interface{})
- func (logger *Logger) Warning(format string, a ...interface{})
Constants ¶
This section is empty.
Variables ¶
View Source
var OpenConsole bool
Functions ¶
Types ¶
type Buffer ¶
type Buffer struct {
// contains filtered or unexported fields
}
func (*Buffer) AppendBool ¶
AppendBool appends a bool to the underlying buffer.
func (*Buffer) AppendByte ¶
AppendByte writes a single byte to the Buffer.
func (*Buffer) AppendBytes ¶
func (*Buffer) AppendFloat ¶
AppendFloat appends a float to the underlying buffer. It doesn't quote NaN or +/- Inf.
func (*Buffer) AppendInt ¶
AppendInt appends an integer to the underlying buffer (assuming base 10).
func (*Buffer) AppendString ¶
AppendString writes a string to the Buffer.
func (*Buffer) AppendUint ¶
AppendUint appends an unsigned integer to the underlying buffer (assuming base 10).
func (*Buffer) Reset ¶
func (b *Buffer) Reset()
Reset resets the underlying byte slice. Subsequent writes re-use the slice's backing array.
func (*Buffer) TrimNewline ¶
func (b *Buffer) TrimNewline()
TrimNewline trims any final "\n" byte from the end of the buffer.
Click to show internal directories.
Click to hide internal directories.