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.79.0
Published
Nov 27, 2020
Platform
darwin/amd64
Imports
6 packages
Last checked
23 minutes ago

Tools for package owners.