ioutil

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 31, 2024 License: MIT Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IndentWriter

type IndentWriter struct {
	io.Writer
	// contains filtered or unexported fields
}

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

func (*IndentWriter) Write

func (w *IndentWriter) Write(buf []byte) (n int, err error)

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL