readwriter

package
v0.0.0-...-73e4950 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Base64Decoder

type Base64Decoder func(*base64.Encoding, io.Reader) io.Reader

func (Base64Decoder) From

func (fn Base64Decoder) From(r io.Reader) decDecode

type Base64Encoder

type Base64Encoder func(*base64.Encoding, io.Writer) io.WriteCloser

func (Base64Encoder) To

func (fn Base64Encoder) To(w io.Writer) encEncode

type JSONDecoder

type JSONDecoder func(io.Reader) *json.Decoder

func (JSONDecoder) From

func (fn JSONDecoder) From(r io.Reader) decDecode

type JSONEncoder

type JSONEncoder func(io.Writer) *json.Encoder

func (JSONEncoder) To

func (fn JSONEncoder) To(w io.Writer) encEncode

type JSONEncoderStripNewline

type JSONEncoderStripNewline func(io.Writer) *json.Encoder

func (JSONEncoderStripNewline) To

func (fn JSONEncoderStripNewline) To(w io.Writer) encEncode

type Reader

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

func NewReader

func NewReader(r io.Reader) *Reader

func (*Reader) Bufio

func (rdr *Reader) Bufio() *bufio.Reader

func (*Reader) ConditionalErr

func (rdr *Reader) ConditionalErr(err error) rdrCondErr

func (*Reader) ConvertErr

func (rdr *Reader) ConvertErr(from, to error) *Reader

func (*Reader) Copy

func (rdr *Reader) Copy(w io.Writer) rdrErr

func (*Reader) CopyN

func (rdr *Reader) CopyN(w io.Writer, n int64) rdrErr

func (*Reader) Decode

func (rdr *Reader) Decode(v interface{}) wtrErr

func (*Reader) Err

func (rdr *Reader) Err() error

func (*Reader) IsErr

func (rdr *Reader) IsErr() bool

func (*Reader) IsNotErr

func (rdr *Reader) IsNotErr() bool

func (*Reader) OnErr

func (rdr *Reader) OnErr(error)

func (*Reader) OnErrF

func (rdr *Reader) OnErrF(errs.StringF, ...interface{})

func (*Reader) Read

func (rdr *Reader) Read(p []byte) (n int, err error)

func (*Reader) SetDecoder

func (rdr *Reader) SetDecoder(fn decodeReader) *Reader

func (*Reader) SetErr

func (rdr *Reader) SetErr(err error)

type Writer

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

func NewWriter

func NewWriter(w io.Writer) *Writer

func (*Writer) Bufio

func (wtr *Writer) Bufio() *bufio.Writer

func (*Writer) Byte

func (wtr *Writer) Byte(p byte) wtrErr

func (*Writer) Bytes

func (wtr *Writer) Bytes(p []byte) wtrErr

func (*Writer) Copy

func (wtr *Writer) Copy(src io.Reader) wtrErr

func (*Writer) Encode

func (wtr *Writer) Encode(v interface{}) wtrErr

func (*Writer) Err

func (wtr *Writer) Err() error

func (*Writer) Error

func (wtr *Writer) Error() string

func (*Writer) Multi

func (wtr *Writer) Multi(ww ...io.Writer) *Writer

func (*Writer) OnErr

func (wtr *Writer) OnErr(error)

func (*Writer) OnErrF

func (wtr *Writer) OnErrF(errs.StringF, ...interface{})

func (*Writer) SetEncoder

func (wtr *Writer) SetEncoder(fn encWriter) *Writer

func (*Writer) String

func (wtr *Writer) String(str string) wtrErr

func (*Writer) To

func (wtr *Writer) To(w io.WriterTo) wtrErr

func (*Writer) UseEncoder

func (wtr *Writer) UseEncoder(fn encWriter) *Writer

func (*Writer) Write

func (wtr *Writer) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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