buffercloser

package
v0.20.18 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrClosedBuffer = errors.New("write on closed buffer")

ErrClosedBuffer is the error returned by Write on closed buffer.

Functions

This section is empty.

Types

type BufferCloser

type BufferCloser interface {
	io.Writer
	io.Closer
	Bytes() []byte
	Closed() <-chan struct{}
}

BufferCloser is bytes.Buffer with io.Closer interface.

func New

func New() BufferCloser

New creates and initialize a new BufferCloser.

Jump to

Keyboard shortcuts

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