filter

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: MIT Imports: 0 Imported by: 1

Documentation

Overview

Package filter provides a function to filter dynamic values/identifiers from a string.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dynamic

func Dynamic(data []byte, l int) []byte

Dynamic replaces a-zA-Z_-% sequences that have at least one digit or 5+ consecutive consonants/vowels with X.

This is useful for filtering out dynamic values from log lines. Filtering is best effort, it does not guarantee that all dynamic values are filtered. Does not allocate, mutates original slice.

Types

This section is empty.

Jump to

Keyboard shortcuts

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