Documentation
¶
Overview ¶
Package kouchio provides basic I/O primitives meant to suppliment the standard library's io package. kouchio should have no dependencies other than the Go standard library, to avoid import loops.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloseWriter ¶
CloseWriter closes w if it is an io.WriteCloser; else it does nothing
Types ¶
type OutputMode ¶
type OutputMode interface { // AddFlags adds flags for the passed command, at start-up AddFlags(*pflag.FlagSet) // New takes flags, after command line options have been parsed, and returns // a new output processor. New(context.Context, io.Writer) (io.Writer, error) }
OutputMode is the common interface for all output modes.
type WrappedWriter ¶
type WrappedWriter interface { // Underlying returns the original, unwrapped, io.WriteCloser. Underlying() io.Writer }
WrappedWriter represents an io.Writerr wrapped by some logic.
Click to show internal directories.
Click to hide internal directories.