io

package
v0.0.0-...-377a6f8 Latest Latest
Warning

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

Go to latest
Published: May 18, 2024 License: Apache-2.0 Imports: 5 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IO

type IO struct {
	Discard io.Writer
}

func (IO) Copy

func (_ IO) Copy(dst io.Writer, src io.Reader) (written int64, err error)

func (IO) CopyBuffer

func (_ IO) CopyBuffer(dst io.Writer, src io.Reader, buf []byte) (written int64, err error)

func (IO) CopyN

func (_ IO) CopyN(dst io.Writer, src io.Reader, n int64) (written int64, err error)

func (IO) LimitReader

func (_ IO) LimitReader(r io.Reader, n int64) io.Reader

func (IO) MultiReader

func (_ IO) MultiReader(readers ...io.Reader) io.Reader

func (IO) MultiWriter

func (_ IO) MultiWriter(writers ...io.Writer) io.Writer

func (IO) Pipe

func (_ IO) Pipe() (*io.PipeReader, *io.PipeWriter)

func (IO) ReadAll

func (_ IO) ReadAll(r io.Reader) ([]byte, error)

func (IO) ReadAtLeast

func (_ IO) ReadAtLeast(r io.Reader, buf []byte, min int) (n int, err error)

func (IO) ReadFull

func (_ IO) ReadFull(r io.Reader, buf []byte) (n int, err error)

func (IO) TeeReader

func (_ IO) TeeReader(r io.Reader, w io.Writer) io.Reader

func (IO) WriteString

func (_ IO) WriteString(w io.Writer, s string) (n int, err error)

type JSON

type JSON struct{}

func (JSON) DecodeArray

func (j JSON) DecodeArray(r io.Reader) (any, error)

func (JSON) DecodeMap

func (j JSON) DecodeMap(r io.Reader) (any, error)

func (JSON) Encode

func (_ JSON) Encode(w io.Writer, v any) error

type OS

type OS struct{}

func (OS) Create

func (_ OS) Create(n string) (*os.File, error)

func (OS) Open

func (_ OS) Open(n string) (*os.File, error)

type YAML

type YAML struct{}

func (YAML) DecodeArray

func (j YAML) DecodeArray(r io.Reader) (any, error)

func (YAML) DecodeMap

func (j YAML) DecodeMap(r io.Reader) (any, error)

func (YAML) Encode

func (_ YAML) Encode(w io.Writer, v any) error

Jump to

Keyboard shortcuts

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