filterwriter

package
v2.7.3 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package filterwriter provides a filter writer.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(w io.Writer, filter FilterFunc) io.Writer

New creates a Filter Writer

Types

type FilterFunc

type FilterFunc func(p []byte) bool

FilterFunc is a filter function for the Filter Writer, returns true to write 'p' to the underlying writer, return false to discard.

Jump to

Keyboard shortcuts

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