# Functions
ByteReplaceWriter returns an io.Writer that wraps w, where all occurrences of the old byte are replaced with the new string on Write calls.
FlushRuneChunk is a helper that repeatedly calls d.FlushRune until EOF, calling fn for every rune that is decoded.
NewUTF8WrapWriter returns a new WrapWriter filter that implements io.Writer, and decodes and encodes runes in UTF-8.
NewWrapWriter returns a new WrapWriter with the given target width in runes, producing output on the underlying writer w.
PrefixLineWriter returns a WriteFlusher that wraps w.
PrefixWriter returns an io.Writer that wraps w, where the prefix is written out immediately before the first non-empty Write call.
TerminalSize returns the dimensions of the terminal, if it's available from the OS, otherwise returns an error.
WriteRuneChunk is a helper that repeatedly calls d.DecodeRune(chunk) until EOF, calling fn for every rune that is decoded.
# Constants
Indicates the end of a rune stream.
Unicode line separator rune.
Unicode paragraph separator rune.
# Structs
UTF8ChunkDecoder implements RuneChunkDecoder for a stream of UTF-8 data that is arbitrarily chunked.
UTF8Encoder implements RuneEncoder for the UTF-8 encoding.
WrapWriter implements an io.Writer filter that formats input text into output lines with a given target width in runes.
# Interfaces
RuneChunkDecoder is the interface to a decoder of a stream of encoded runes that may be arbitrarily chunked.
RuneEncoder is the interface to an encoder of a stream of runes into bytes.Buffer.
WriteFlusher is the interface that groups the basic Write and Flush methods.