internal

package
v0.0.0-...-c07845e Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2015 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrShortRead = errors.New("short read")

Functions

func Locked

func Locked(locker sync.Locker, fn func())

func NewCallerError

func NewCallerError(cause error) error

func ReadExactly

func ReadExactly(r io.Reader, out []byte) error

func ReadExactlyAt

func ReadExactlyAt(r io.ReaderAt, out []byte, offset int64) error

func WriteExactly

func WriteExactly(w io.Writer, in []byte) error

func WriteExactlyAt

func WriteExactlyAt(w io.WriterAt, in []byte, offset int64) error

Types

type CallerError

type CallerError struct {
	PC    []uintptr
	Cause error
}

func (CallerError) Error

func (err CallerError) Error() string

type Comparison

type Comparison int
const (
	LessThan    Comparison = -1
	EqualTo     Comparison = 0
	GreaterThan Comparison = 1
)

func (Comparison) String

func (i Comparison) String() string

Jump to

Keyboard shortcuts

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