package glob

import "github.com/gohugoio/hugo/hugofs/glob"

Index

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.

Source Files

glob.go

Version
v0.82.0
Published
Mar 21, 2021
Platform
js/wasm
Imports
6 packages
Last checked
22 minutes ago

Tools for package owners.