filter

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package filter provides exclude and mute regex filtering.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Filter

type Filter struct {
	// contains filtered or unexported fields
}

Filter compiles and applies regex patterns to filter log lines.

func NewFilter

func NewFilter(patterns []string) (*Filter, error)

NewFilter compiles regex patterns and returns a Filter. Returns an error if any pattern is invalid regex.

func (*Filter) Match

func (f *Filter) Match(line string) bool

Match returns true if the line should be excluded (matches any pattern).

Jump to

Keyboard shortcuts

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