Registry / utility / gobwas-glob

gobwas-glob

JSON →
library0.2.3gogounverified

Package glob provides glob pattern matching for strings.

go get github.com/gobwas/glob
INSTALL
IMPORT
SIG · GOBWAS-GLOB
G
gobwas-glob
utilitygov0.2.3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

glob
github.com/gobwas/glob

Compile and match a glob pattern

package main import ( "fmt" "github.com/gobwas/glob" ) func main() { g, err := glob.Compile("*.txt") if err != nil { panic(err) } fmt.Println(g.Match("file.txt")) // true fmt.Println(g.Match("file.go")) // false }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.2.3latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
15 hits · last 30 days
node
14
Perplexity
1
Resources
gobwas-glob — go get gobwas-glob · libregistry