io

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2024 License: Apache-2.0 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 {
	bytes.Buffer
}

BufferCloser is an bytes.buffer implementation of io.WriterCloser

func NewBufferCloser

func NewBufferCloser() *BufferCloser

NewBufferCloser returns a new BufferCloser

func (*BufferCloser) Close

func (bc *BufferCloser) Close() error

Close closes the BufferCloser

func (*BufferCloser) Write

func (bc *BufferCloser) Write(p []byte) (n int, err error)

Write writes to the BufferCloser

Jump to

Keyboard shortcuts

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