filter

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(r io.Reader, filter func([]byte) ([]byte, error)) io.Reader

func NewWriter

func NewWriter(r io.Writer, filter func([]byte) ([]byte, error)) io.Writer

Types

type Filter

type Filter struct {
	bytes.Buffer
	Filter func([]byte) ([]byte, error)
	// contains filtered or unexported fields
}

func (*Filter) Transform

func (this *Filter) Transform(dst, src []byte, atEOF bool) (int, int, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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