repofilter

package
v0.205.6 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2026 License: Apache-2.0 Imports: 2 Imported by: 0 modules, 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 repofilter is the one implementation of the fleet --filter selector.

Every fleet verb used to spell the selector as strings.Contains, so a shell-style pattern such as 'datatug/*' was compared as the literal text "datatug/*", matched nothing, and the verb reported an empty success (wb 0.202.0, 2026-10-29: 240 rows unfiltered, zero with the glob). A filter is now a case-insensitive owner/name substring, or a glob when it carries a glob metacharacter.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsGlob

func IsGlob(filter string) bool

IsGlob reports whether filter is matched as a glob rather than a substring.

func Match

func Match(filter string, candidates ...string) bool

Match reports whether filter selects any candidate. An empty filter selects everything. A substring filter matches anywhere in a candidate. A glob is matched against the whole candidate and against every suffix that starts after a '/', so 'datatug/*' selects the slug datatug/websites, the host-qualified github.com/datatug/websites, and a checkout path ending in either.

func Valid

func Valid(filter string) bool

Valid reports whether filter is usable. Only a malformed glob is invalid.

Types

This section is empty.

Jump to

Keyboard shortcuts

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