func (compiled CompiledGrok) MatchString(text string) bool {
	return compiled.regexp.MatchString(text)
}
MatchString returns true if the given text matches the pattern.
package grok
import (
	"fmt"
	"regexp"
	"strconv"
)
type CompiledGrok struct {
	regexp      *regexp.Regexp
	typeHints   typeHintByKey
	removeEmpty bool
}
type typeHintByKey map[string]string
func (compiled CompiledGrok) GetFields() []string {
	return compiled.regexp.SubexpNames()
}
func (compiled CompiledGrok) Match(data []byte) bool {
	return compiled.regexp.Match(data)
}