buffer

package
v0.0.0-...-90e8e0c Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package buffer provides a wrapper around an io.{Writer, StringWriter, ByteWiter}.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Buffer

type Buffer struct {
	Out Writer
	Err error
}

Buffer wraps a bufio.Writer, buffering any encountered error.

func (*Buffer) Write

func (buf *Buffer) Write(p []byte)

func (*Buffer) WriteByte

func (buf *Buffer) WriteByte(p byte)

func (*Buffer) WriteString

func (buf *Buffer) WriteString(p string)

type Writer

type Writer interface {
	io.Writer
	io.StringWriter
	io.ByteWriter
}

Jump to

Keyboard shortcuts

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