glob

package
v1.7.2 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Args

type Args struct {
	Include, Exclude []string
}

type Globber

type Globber struct {
	// contains filtered or unexported fields
}

func New

func New() *Globber

func (*Globber) Glob

func (g *Globber) Glob(dir string, args *Args) (map[string]struct{}, error)

Glob is a specialised version of the glob builtin from Please. It assumes: 1) globs should only match .go files as they're being used in go rules 2) go rules will never depend on files outside the package dir, so we don't need to support ** 3) we don't want symlinks, directories and other non-regular files

Jump to

Keyboard shortcuts

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