glob

package
v0.80.0 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2020 License: Apache-2.0 Imports: 6 Imported by: 24

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilterGlobParts

func FilterGlobParts(a []string) []string

FilterGlobParts removes any string with glob wildcard.

func GetGlob

func GetGlob(pattern string) (glob.Glob, error)

func HasGlobChar

func HasGlobChar(s string) bool

HasGlobChar returns whether s contains any glob wildcards.

func NormalizePath

func NormalizePath(p string) string

func ResolveRootDir

func ResolveRootDir(p string) string

ResolveRootDir takes a normalized path on the form "assets/**.json" and determines any root dir, i.e. any start path without any wildcards.

Types

This section is empty.

Jump to

Keyboard shortcuts

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