package main
import (
"fmt"
"github.com/cbuschka/go-ant-pattern"
)
func main() {
path := "/"
antPattern := ant_pattern.MustCompile("/**")
if antPattern.Matches(path) {
fmt.Printf("%s matches %s", path, antPattern.String());
}
}
Copyright (c) 2021 by Cornelius Buschka.