recioutil

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	LineEndCR   = []byte{0x0d}
	LineEndLF   = []byte{0x0a}
	LineEndCRLF = []byte{0x0d, 0x0a}

	LineEndings = map[string][]byte{
		"cr":   LineEndCR,
		"lf":   LineEndLF,
		"crlf": LineEndCRLF,
	}
)

Functions

This section is empty.

Types

type Line

type Line []byte

func (*Line) Decode

func (l *Line) Decode(p []byte) (n int, err error)

func (*Line) Encode

func (l *Line) Encode(p []byte) (n int, err error)

type LineReader

type LineReader struct {
	// contains filtered or unexported fields
}

func NewLineReader

func NewLineReader(r recio.Reader, delimiter []byte) (lr *LineReader)

func (*LineReader) Read

func (lr *LineReader) Read(v recio.Decoder) (n int, err error)

type LineWrapper

type LineWrapper struct {
	// contains filtered or unexported fields
}

func (*LineWrapper) Decode

func (lw *LineWrapper) Decode(p []byte) (n int, err error)

func (*LineWrapper) Encode

func (lw *LineWrapper) Encode(p []byte) (n int, err error)

type LineWriter

type LineWriter struct {
	// contains filtered or unexported fields
}

func NewLineWriter

func NewLineWriter(w recio.Writer, delimiter []byte) (lw *LineWriter)

func (*LineWriter) Write

func (lw *LineWriter) Write(v recio.Encoder) (n int, err error)

Jump to

Keyboard shortcuts

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