io

package
v0.2.196 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2023 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SeekStart   = io.SeekStart   // seek relative to the origin of the file
	SeekCurrent = io.SeekCurrent // seek relative to the current offset
	SeekEnd     = io.SeekEnd     // seek relative to the end
)

Variables

View Source
var EOF = io.EOF
View Source
var ErrNoProgress = io.ErrNoProgress
View Source
var ErrUnexpectedEOF = io.ErrUnexpectedEOF
View Source
var LimitReader = io.LimitReader

Functions

func Copy

func Copy(dst Writer, src Reader) (written int64, err error)

func CopyN

func CopyN(dst Writer, src Reader, n int64) (written int64, err error)

func ReadAll

func ReadAll(r Reader) ([]byte, error)

func ReadFull

func ReadFull(r Reader, buf []byte) (n int, err error)

func WriteString

func WriteString(w Writer, s string) (n int, err error)

Types

type ByteWriter

type ByteWriter = io.ByteWriter

type Closer

type Closer = io.Closer

type LimitedReader

type LimitedReader = io.LimitedReader

type ReadCloser

type ReadCloser = io.ReadCloser

func NopCloser

func NopCloser(r Reader) ReadCloser

type ReadSeeker

type ReadSeeker = io.ReadSeeker

type ReadWriter

type ReadWriter = io.ReadWriter // go vet

type Reader

type Reader = io.Reader

type ReaderAt

type ReaderAt = io.ReaderAt

type SectionReader

type SectionReader = io.SectionReader

func NewSectionReader

func NewSectionReader(r ReaderAt, off int64, n int64) *SectionReader

type WriteCloser

type WriteCloser = io.WriteCloser

type Writer

type Writer = io.Writer
var Discard Writer = io.Discard

func MultiWriter

func MultiWriter(writers ...Writer) Writer

type WriterAt

type WriterAt = io.WriterAt

Jump to

Keyboard shortcuts

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