Documentation
¶
Index ¶
- Variables
- func Pipe(src io.ReadWriteCloser, dst io.ReadWriteCloser) (int64, int64)
- type Logger
- func (l *Logger) Debugf(f string, args ...interface{})
- func (l *Logger) Errorf(f string, args ...interface{}) error
- func (l *Logger) Fork(prefix string, args ...interface{}) *Logger
- func (l *Logger) Infof(f string, args ...interface{})
- func (l *Logger) IsDebug() bool
- func (l *Logger) IsInfo() bool
- func (l *Logger) Prefix() string
Constants ¶
This section is empty.
Variables ¶
Stdio as a ReadWriteCloser
Functions ¶
func Pipe ¶
func Pipe(src io.ReadWriteCloser, dst io.ReadWriteCloser) (int64, int64)
Pipe copies between src and dst in both directions, propagating half-closes: when one direction reaches a clean EOF, the write side of its destination is closed (CloseWrite) while the other direction keeps flowing. Copy errors tear down both ends. Both connections are fully closed before Pipe returns.
Types ¶
type Logger ¶
type Logger struct {
Info, Debug bool
// contains filtered or unexported fields
}
Logger is pkg/log Logger with prefixing and 2 log levels
func NewLoggerFlag ¶
Click to show internal directories.
Click to hide internal directories.