buffer

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2024 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 MemoryBuffer

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

MemoryBuffer has both Write and Close methods for use as io.WriteCloser when testing (instead of os.Stdout), so tests can assert.Equal results etc.

func NewMemoryBuffer

func NewMemoryBuffer() *MemoryBuffer

func (*MemoryBuffer) Close

func (b *MemoryBuffer) Close() error

func (*MemoryBuffer) String

func (b *MemoryBuffer) String() string

func (*MemoryBuffer) Write

func (b *MemoryBuffer) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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