multi

package
v1.15.1 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInstance = fmt.Errorf("invalid instance")
)

Functions

This section is empty.

Types

type DiscardCloser

type DiscardCloser struct{}

func (DiscardCloser) Close

func (d DiscardCloser) Close() error

func (DiscardCloser) Read

func (d DiscardCloser) Read(p []byte) (n int, err error)

func (DiscardCloser) Write

func (d DiscardCloser) Write(p []byte) (n int, err error)

type Multi

type Multi interface {
	io.ReadWriteCloser
	io.StringWriter

	Clean()
	AddWriter(w ...io.Writer)
	SetInput(i io.ReadCloser)
	Reader() io.ReadCloser
	Writer() io.Writer
	Copy() (n int64, err error)
}

func New

func New() Multi

Jump to

Keyboard shortcuts

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