io

package
v0.0.0-...-a2e018f Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FPrint

func FPrint(w io.Writer, a ...interface{}) (err error)

func PipedFPrint

func PipedFPrint(w io.Writer, a ...interface{}) (err error)

Types

type BufferedRW

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

func NewBufferedRW

func NewBufferedRW(maxBufferSize int64, rw ...interface{}) (bufRW *BufferedRW)

func (*BufferedRW) Close

func (bufRW *BufferedRW) Close() (err error)

func (*BufferedRW) Print

func (bufRW *BufferedRW) Print(a ...interface{})

func (*BufferedRW) Println

func (bufRW *BufferedRW) Println(a ...interface{})

func (*BufferedRW) Read

func (bufRW *BufferedRW) Read(p []byte) (n int, err error)

func (*BufferedRW) ReadRune

func (bufRW *BufferedRW) ReadRune() (r rune, size int, err error)

func (*BufferedRW) Reset

func (bufRW *BufferedRW) Reset()

func (*BufferedRW) Seek

func (bufRW *BufferedRW) Seek(offset int64, whence int) (n int64, err error)

func (*BufferedRW) Size

func (bufRW *BufferedRW) Size() (n int64)

func (*BufferedRW) String

func (bufRW *BufferedRW) String() (s string)

func (*BufferedRW) Write

func (bufRW *BufferedRW) Write(p []byte) (n int, err error)

type Printing

type Printing interface {
	Print(a ...interface{})
	Println(a ...interface{})
}

type RW

type RW struct {
	*Reader
	*Writer
}

func NewRW

func NewRW(a interface{}) (rw *RW)

func (*RW) Close

func (rw *RW) Close() (err error)

func (*RW) Read

func (rw *RW) Read(p []byte) (n int, err error)

func (*RW) Seek

func (rw *RW) Seek(offset int64, whence int) (n int64, err error)

func (*RW) Write

func (rw *RW) Write(p []byte) (n int, err error)

type Reader

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

func NewReader

func NewReader(altR io.Reader) (r *Reader)

func (*Reader) Close

func (r *Reader) Close() (err error)

func (*Reader) Read

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

func (*Reader) Seek

func (rd *Reader) Seek(offset int64, whence int) (n int64, err error)

type ReaderWriter

type ReaderWriter interface {
	io.Reader
	io.Seeker
	io.Closer
	io.Writer
}

type Writer

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

func NewWriter

func NewWriter(altW io.Writer) (w *Writer)

func (*Writer) Close

func (wt *Writer) Close() (err error)

func (*Writer) Seek

func (wt *Writer) Seek(offset int64, whence int) (n int64, err error)

func (*Writer) Write

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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