Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IndentWriter ¶
An IndentWriter indents each '\n'-terminated line by a number of '\t' characters. Blank lines can be indented too, optionally.
func NewIndentWriter ¶
func NewIndentWriter(w io.Writer, pfx []byte) (iw *IndentWriter)
func (*IndentWriter) Dec ¶
func (w *IndentWriter) Dec() *IndentWriter
func (*IndentWriter) Inc ¶
func (w *IndentWriter) Inc() *IndentWriter
func (*IndentWriter) IndentBlankLines ¶
func (w *IndentWriter) IndentBlankLines(val bool) *IndentWriter
func (*IndentWriter) SubWriter ¶
func (w *IndentWriter) SubWriter() *IndentWriter
type RdChannels ¶
type RdChannels struct { Req chan int Data chan data }
func ChannelizeReader ¶
func ChannelizeReader(r io.Reader, buf []byte) (ch RdChannels)
Create a wrapper around an io.Reader. A pair of channels is returned that can be used to request a number of bytes, and to receive a byte slice containing the bytes actually read.
Click to show internal directories.
Click to hide internal directories.