Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(options ...Option) io.WriteCloser
New creates a new lineprefix writer with options.
Types ¶
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
Option is the configuration option for a new instance of lineprefix writer.
func PrefixFunc ¶
PrefixFunc is like prefix but with the ability to make it dynamic. Can be called multiple times to set multiple prefixes.
func RenderEscaped ¶
RenderEscaped (if true) enables the rendering of escaped whitespace characters. e.g. \\t appears as tab instead of \t, \\n appears as newline instead of \n etc.
Click to show internal directories.
Click to hide internal directories.