Skip to content

cbuschka/go-ant-pattern

Repository files navigation

go-ant-pattern - An ant pattern parser.

Usage

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());
    }  
}

License

Copyright (c) 2021 by Cornelius Buschka.

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published