Added glob pattern matching in acl with the gobwas/glob package

This commit is contained in:
Kelvin Clement Mwinuka
2024-01-06 19:34:13 +03:00
parent 86fcfad007
commit 90782ea5ff
40 changed files with 2968 additions and 22 deletions

14
vendor/github.com/gobwas/glob/syntax/syntax.go generated vendored Normal file
View File

@@ -0,0 +1,14 @@
package syntax
import (
"github.com/gobwas/glob/syntax/ast"
"github.com/gobwas/glob/syntax/lexer"
)
func Parse(s string) (*ast.Node, error) {
return ast.Parse(lexer.NewLexer(s))
}
func Special(b byte) bool {
return lexer.Special(b)
}