ioutils

package module
v0.4.8 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2024 License: BSD-3-Clause Imports: 4 Imported by: 5

README

go-ioutils

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrMaximumSize = errors.New("maximum buffer size reached")
	ErrInvalidSize = errors.New("invalid size")
)

Functions

func Copy

func Copy(w io.Writer, r io.Reader) (int, error)

func CopyPack added in v0.4.8

func CopyPack(w io.Writer, r io.Reader, size int) (int, error)

func IsAsciiEOF

func IsAsciiEOF(b []byte) bool

func ReadAll

func ReadAll(r io.ReadCloser) ([]byte, error)

func ReadBytes

func ReadBytes(v io.Reader, divide string) ([]byte, error)

func ReadFull

func ReadFull(w io.Writer, r io.Reader, maxSize int) error

func WriteBytes

func WriteBytes(v io.Writer, b []byte, divide string) error

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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