Documentation ¶
Index ¶
Constants ¶
View Source
const BuiltinPatterns = `` /* 4367-byte string literal not displayed */
Patterns based on https://github.com/logrusorgru/grokky nolint: lll
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Env ¶
type Env struct {
// contains filtered or unexported fields
}
Env is a collection of named patterns
func (*Env) MustSet ¶
MustSet compiles and stores a named pattern or panics if the pattern is invalid or exists already.
func (*Env) ReadPatterns ¶
ReadPatterns reads, compiles and adds named patterns to an environment from an io.Reader
type Pattern ¶
type Pattern struct {
// contains filtered or unexported fields
}
Pattern can match strings to extract key/value pairs
func (*Pattern) MatchString ¶
MatchString matches src appending key/value pairs to dst. If the text does not match an error is return
Click to show internal directories.
Click to hide internal directories.