Documentation ¶
Index ¶
- Variables
- func New(w io.Writer) handlers.Handler
- func WithAttrSeparator(h handlers.Handler, attrSeparator rune) handlers.Handler
- func WithKVSeparator(h handlers.Handler, kvSeparator string) handlers.Handler
- func WithTimeFormat(h handlers.Handler, timeFmt string) handlers.Handler
- func WithWhitespace(h handlers.Handler, whitespace rune) handlers.Handler
- func WithWrapper(h handlers.Handler, leftWrapper, rightWrapper rune) handlers.Handler
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrZeroBytes is raised when the `io.Writer` in the handler // returns a zero-length of bytes written, when the `Write()` // method is called ErrZeroBytes error = errors.New("zero bytes written") )
Functions ¶
func WithAttrSeparator ¶
WithWrapper creates a copy the Handler `h`, with the attribute key-value separator string `attrSeparator`. Returns nil if the Handler is not a textHandler
func WithKVSeparator ¶
WithWrapper creates a copy the Handler `h`, with the key-value separator string `kvSeparator`. Returns nil if the Handler is not a textHandler
func WithTimeFormat ¶
WithWrapper creates a copy the Handler `h`, with the time format string `timeFmt`. Returns nil if the Handler is not a textHandler
func WithWhitespace ¶
WithWhitespace creates a copy the Handler `h`, with the whitespace rune `whitespace`. Returns nil if the Handler is not a textHandler
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.