package
Version:
v0.0.0-...-d3da680
Opens a new window with list of versions in this module.
Published: Dec 4, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package globset preprocesses []identity.Glob for faster querying.
Builder builds GlobSet from individual globs.
Keeps the cache of compiled regexps internally.
NewBuilder constructs new Builder instance.
Add adds a glob to the set being constructed.
Returns an error if the glob is malformed.
Build returns the fully constructed set or nil if it is empty.
Returns an error if some glob can't be compiled into a regexp.
Reset prepares the builder for building a new GlobSet.
Keeps the cache of compiled regexps.
GlobSet encodes same set of identities as some []identity.Glob.
For each possible identity type it has a single regexp against an identity
value which tests whether it is in the set or not.
Construct it via Builder.
Has checks whether 'id' is in the set.
Malformed identities are considered to be not in the set. 'nil' GlobSet is
considered empty.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.