testutil

package
v0.0.0-...-c756989 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2018 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BufferCloser

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

BufferCloser is a buffer implementation with Close operation Is a io.ReadCloser

func NewBufferCloser

func NewBufferCloser(data []byte) *BufferCloser

NewBufferCloser returns the buffer with the data stored.

func (*BufferCloser) Close

func (b *BufferCloser) Close() error

func (*BufferCloser) Get

func (b *BufferCloser) Get() []byte

func (*BufferCloser) Read

func (b *BufferCloser) Read(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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