Help us shape the future of Go! Take the 2026 Go Developer Survey

glob

package
v3.1.40 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2026 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

Source Files

  • glob.go

Jump to

Keyboard shortcuts

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