ghfilter

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2026 License: Apache-2.0 Imports: 3 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package ghfilter matches GitHub Actions filter patterns (branches, tags, paths) as the filter pattern cheat sheet describes them.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Filter

func Filter(patterns []string, s string) bool

Filter applies patterns in order, as GitHub does: a later match decides, a ! pattern excludes what earlier ones included.

func Match

func Match(pattern, s string) bool

Match reports whether s matches one pattern: * any run without /, ** any run, ? and + zero-or-one and one-or-more of the preceding character, [a-z0-9] one listed character, \ escapes. A leading ! is not special here.

Types

This section is empty.

Jump to

Keyboard shortcuts

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