data

package
v2.0.0-...-f0a18de Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ReadAtSeekerWriteToCloser

type ReadAtSeekerWriteToCloser interface {
	io.Seeker
	io.Closer
	io.Reader
	io.ReaderAt
	io.WriterTo

	// Size is an size of content
	Size() int64

	// Done Completion of work with data
	Done()
}

ReadAtSeekerWriteToCloser is an interface

func NewReadAtSeekerWriteToCloser

func NewReadAtSeekerWriteToCloser(r interface{}) ReadAtSeekerWriteToCloser

NewReadAtSeekerWriteToCloser Реализация интерфейсов io для *bytes.Byffer и *os.File

type ReadCloser

type ReadCloser interface {
	Read(p []byte) (int, error)
	Close() error
}

ReadCloser is an interface

func NewReadCloser

func NewReadCloser(w io.Reader, fn func() error) ReadCloser

NewReadCloser Создание нового объекта на основе io.Reader

type WriteCloser

type WriteCloser interface {
	Write(p []byte) (int, error)
	Close() error
}

WriteCloser is an interface

func NewWriteCloser

func NewWriteCloser(w io.Writer) WriteCloser

NewWriteCloser Создание нового объекта на основе io.Writer

Jump to

Keyboard shortcuts

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