hugo: github.com/gohugoio/hugo/hugofs/glob Index | Files

package glob

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

Index

Package Files

glob.go

func FilterGlobParts Uses

func FilterGlobParts(a []string) []string

FilterGlobParts removes any string with glob wildcard.

func GetGlob Uses

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

func HasGlobChar Uses

func HasGlobChar(s string) bool

HasGlobChar returns whether s contains any glob wildcards.

func NormalizePath Uses

func NormalizePath(p string) string

func ResolveRootDir Uses

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.

Package glob imports 6 packages (graph) and is imported by 31 packages. Updated 2019-08-17. Refresh now. Tools for package owners.