readsizer

package
v0.0.0-...-cffa11a Latest Latest
Warning

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

Go to latest
Published: May 5, 2016 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ByteSize

type ByteSize int64
const (
	KB ByteSize = 1 << (10 * iota)
	MB
	GB
)

type ReadSizer

type ReadSizer interface {
	io.Reader
	Size() int64
}

func ReadCloserToReadSizer

func ReadCloserToReadSizer(r io.ReadCloser, MaxMeasureSize ByteSize) (ReadSizer, error)

Jump to

Keyboard shortcuts

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