Debian Codegraph @

/

debian golang-github-becheran-wildmatch-go 2.0.3-1debian golang-github-becheran-wildmatch-go-dev gomod github.com/becheran/wildmatch-go debiangoinimakefilemarkdownshellyaml 15 files · 91 symbols
View dependency graph

Depends on

README (full)

wildmatch go

GoDev Sourcegraph Go Report Card GitHub Workflow Status

golang library of the original rust wildmatch library.

go get github.com/becheran/wildmatch-go

Match strings against a simple wildcard pattern. Tests a wildcard pattern p against an input string s. Returns true only when p matches the entirety of s.

See also the example described on wikipedia for matching wildcards.

  • ? matches exactly one occurrence of any character.
  • * matches arbitrary many (including zero) occurrences of any character.
  • No escape characters are defined.

For example the pattern ca? will match cat or car. The pattern https://* will match all https urls, such as https://google.de or https://github.com/becheran/wildmatch.

The library only depends on the go standard library.

dir .github/
dir debian/
file .gitignore
file LICENSE
file README.md
file go.mod
file wildmatch.go
file wildmatch_test.go