glob

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2020 License: GPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Resolver

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

Resolver resolves a glob path to files. The functionality is the same then filepath.Glob() with the addition that '**' is supported to match files directories recursively.

func NewResolver

func NewResolver(glob string) *Resolver

NewResolver returns a resolver that resolves glob relative to path

func (*Resolver) Resolve

func (r *Resolver) Resolve() ([]string, error)

Resolve returns absolute paths to files that specify the glob path glob does the same then filepath.Glob() with 2 Exceptions: - it also supports '**' to match files and directories recursively - it and only returns paths to files, no directory paths If a Glob doesn't match any files an empty []string is returned and error is nil

Jump to

Keyboard shortcuts

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