Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConditionalWriter ¶
ConditionalWriter is an io.Writer that wraps an input writer and exposes methods to condition its action.
func (ConditionalWriter) ElseIf ¶
func (w ConditionalWriter) ElseIf(v bool) ConditionalWriter
ElseIf either keeps the previous write condition if it is true, else it sets it to v.
func (ConditionalWriter) If ¶
func (w ConditionalWriter) If(v bool) ConditionalWriter
If sets the write condition to v.
Click to show internal directories.
Click to hide internal directories.