package glob
import "github.com/gohugoio/hugo/hugofs/glob"
Index ¶
- func FilterGlobParts(a []string) []string
- func GetGlob(pattern string) (glob.Glob, error)
- func HasGlobChar(s string) bool
- func NormalizePath(p string) string
- func ResolveRootDir(p string) string
Functions ¶
func FilterGlobParts ¶
FilterGlobParts removes any string with glob wildcard.
func GetGlob ¶
func HasGlobChar ¶
HasGlobChar returns whether s contains any glob wildcards.
func NormalizePath ¶
func ResolveRootDir ¶
ResolveRootDir takes a normalized path on the form "assets/**.json" and determines any root dir, i.e. any start path without any wildcards.
Source Files ¶
- Version
- v0.79.0
- Published
- Nov 27, 2020
- Platform
- darwin/amd64
- Imports
- 6 packages
- Last checked
- 23 minutes ago –
Tools for package owners.