filter

package
v0.0.1-beta6 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package filter provides helpers for creating the inclusion and exclusion filters used by ajfs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParsePathRegex

func ParsePathRegex(input []string) ([]string, []string)

Given a slice of strings that contain regular expressions to be used in building the include or exclude filters this will split them depending on whether each regex is prefixed with "f:" for file paths or "d:" for directory paths. If neither prefix is found then the expression will be added to both file and directory.

func ParsePathRegexToMatchPathFn

func ParsePathRegexToMatchPathFn(input []string, include bool) (file.MatchPathFn, file.MatchPathFn, error)

Parse the slice of strings (same as ParsePathRegex) and return the path matcher function to be used. include determines if the matchers will be used for includer or exclude filtering.

Types

This section is empty.

Jump to

Keyboard shortcuts

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