Back to godoc.org
go.ajitem.com/progress

Package progress

v1.0.0
Latest Go to latest

The latest major version is .

Published: Aug 4, 2020 | License: MIT | Module: go.ajitem.com/progress

Index

func DiscardCloser

func DiscardCloser(w io.Writer) io.WriteCloser

type ProgressFunc

type ProgressFunc func(n int)

type ReadCloser

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

func NewReadCloser

func NewReadCloser(closer io.ReadCloser, progress ProgressFunc) *ReadCloser

func (ReadCloser) Close

func (r ReadCloser) Close() error

func (ReadCloser) Read

func (r ReadCloser) Read(p []byte) (int, error)

type Reader

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

func NewReader

func NewReader(reader io.Reader, progress ProgressFunc) *Reader

func (Reader) Read

func (r Reader) Read(p []byte) (int, error)

type WriteCloser

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

func NewWriteCloser

func NewWriteCloser(closer io.WriteCloser, progress ProgressFunc) *WriteCloser

func (WriteCloser) Close

func (w WriteCloser) Close() error

func (WriteCloser) Write

func (w WriteCloser) Write(p []byte) (int, error)

type Writer

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

func NewWriter

func NewWriter(writer io.Writer, progress ProgressFunc) *Writer

func (Writer) Write

func (w Writer) Write(p []byte) (int, error)

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier