Help us shape the future of Go! Take the 2026 Go Developer Survey

filter

package
v0.2.20 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func File

func File(path string, includePatterns, excludePatterns []string) (string, error)

File determines if a path matches a set of include and exclude patterns. At least one include pattern and no exclude patterns must match.

func Files

func Files(files, includePatterns, excludePatterns []string) ([]string, error)

Files filters an array of files using filter.File.

func MatchAny

func MatchAny(path string, patterns []string) (bool, error)

MatchAny checks whether the given path matches any of the specified patterns.

func SplitPattern

func SplitPattern(pattern string) (string, string)

SplitPattern splits a pattern into a root directory and a trailing pattern specifier.

Types

This section is empty.

Jump to

Keyboard shortcuts

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