glob

package
v2.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2022 License: GPL-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 Resolver

type Resolver struct{}

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 (*Resolver) Resolve

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

Resolve resolves the globPath to absolute file paths. Files are resolved in the same way then filepath.Glob() does, with 2 Exceptions: - it also supports '**' to match files and directories recursively, - it only returns paths to files, no directory paths, If a globPath 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