Versions in this module Expand all Collapse all v1 v1.5.4 Jan 28, 2022 Changes in this version + func SingleQuote(data []byte) []byte + func Slash(data []byte) []byte + func Unslash(src []byte) ([]byte, error) + type Rule struct + DefaultValue []byte + ExclusiveLeft bool + ExclusiveRight bool + Name string + Optional bool + Params []RuleNode + Pattern *regexp.Regexp + RAW []byte + Range []*RuleLit + ValueMatrix [][]*RuleLit + func MustParseRuleString(rule string) *Rule + func NewRule(name string) *Rule + func ParseRule(b []byte) (*Rule, error) + func ParseRuleString(rule string) (*Rule, error) + func (r *Rule) Bytes() []byte + func (r *Rule) ComputedValues() []*RuleLit + type RuleLit struct + Lit []byte + func NewRuleLit(lit []byte) *RuleLit + func (lit *RuleLit) Append(b []byte) + func (lit *RuleLit) Bytes() []byte + type RuleNode interface + Bytes func() []byte