NewRegex creates a new regex function.
()
| 30 | |
| 31 | // NewRegex creates a new regex function. |
| 32 | func NewRegex() *Regex { |
| 33 | return &Regex{rxs: make(map[string]*regexp.Regexp)} |
| 34 | } |
| 35 | |
| 36 | func (f *Regex) Call(args []interface{}) (interface{}, bool) { |
| 37 | if len(args) < 2 { |
no outgoing calls