filepathxx

package
v0.0.0-...-b7a57f2 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

From https://github.com/klauspost/filepathx/blob/master/filepathx.go

Package filepathx adds double-star globbing support to the Glob function from the core path/filepath package. You might recognize "**" recursive globs from things like your .gitignore file, and zsh. The "**" glob represents a recursive wildcard matching zero-or-more directory levels deep.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Glob

func Glob(pattern string) ([]string, error)

Glob adds double-star support to the core path/filepath Glob function. It's useful when your globs might have double-stars, but you're not sure.

Types

type Globs

type Globs []string

Globs represents one filepath glob, with its elements joined by "**".

func (Globs) Expand

func (globs Globs) Expand() ([]string, error)

Expand finds matches for the provided Globs.

Jump to

Keyboard shortcuts

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