lang: funcs: Add regexp package and match function

This adds a simple regexp match function. This will be useful for
regexp based name classification, if you're into that sort of thing.
This commit is contained in:
James Shubin
2019-04-16 21:42:32 -04:00
parent eba45e6207
commit fc3baa28d6
5 changed files with 160 additions and 0 deletions

View File

@@ -24,6 +24,7 @@ import (
_ "github.com/purpleidea/mgmt/lang/funcs/core/fmt"
_ "github.com/purpleidea/mgmt/lang/funcs/core/math"
_ "github.com/purpleidea/mgmt/lang/funcs/core/os"
_ "github.com/purpleidea/mgmt/lang/funcs/core/regexp"
_ "github.com/purpleidea/mgmt/lang/funcs/core/strings"
_ "github.com/purpleidea/mgmt/lang/funcs/core/sys"
_ "github.com/purpleidea/mgmt/lang/funcs/core/world"