glob

package
v1.25.0-rc0 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsSpecialByte

func IsSpecialByte(c byte) bool

func QuoteMeta

func QuoteMeta(s string) string

QuoteMeta returns a string that quotes all glob pattern meta characters inside the argument text; For example, QuoteMeta(`{foo*}`) returns `\[foo\*\]`. Reference: https://github.com/gobwas/glob/blob/master/glob.go

Types

type Glob

type Glob interface {
	Match(string) bool
}

func Compile

func Compile(pattern string, separators ...rune) (Glob, error)

func MustCompile

func MustCompile(pattern string, separators ...rune) Glob

Jump to

Keyboard shortcuts

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