Registry / utility / ryanuber-go-glob

ryanuber-go-glob

JSON →
library1.0.0gogounverified

go-glob is a simple glob pattern matching library for Go.

go get github.com/ryanuber/go-glob
INSTALL
IMPORT
SIG · RYANUBER-GO-GLOB
R
ryanuber-go-glob
utilitygov1.0.0
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/ryanuber/go-glob

Check if a string matches a glob pattern

package main import ( "fmt" "github.com/ryanuber/go-glob" ) func main() { pattern := "*.go" str := "main.go" matched := glob.Glob(pattern, str) fmt.Printf("Pattern %q matches %q: %v\n", pattern, str, matched) }
Debug
Known issues

No known issues recorded.

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

No dependency data recorded yet.

Agent activity
14 hits · last 30 days
node
14
Resources
ryanuber-go-glob — go get ryanuber-go-glob · libregistry