Versions in this module Expand all Collapse all v1 v1.0.0 Dec 23, 2025 Changes in this version + var ErrParse error = &ParseError + var ErrSyntax error = &SyntaxError + type ParseError struct + Input string + Regex string + func (e *ParseError) Error() string + func (e *ParseError) Is(err error) bool + type Regex interface + Match func(s string) Result + Regexp func() *regexp.Regexp + ReplaceAll func(s string, repl string) string + ReplaceAllLiteral func(src string, repl string) string + String func() string + Test func(s string) bool + TryMatch func(s string) (Result, error) + Validate func(s string) error + func Compile(s string) (Regex, error) + func MustCompile(s string) Regex + type Result interface + Group func(name string) (string, bool) + GroupFloat func(name string) (float64, bool) + GroupFloatOr func(name string, fallback float64) float64 + GroupFloatOrZero func(name string) float64 + GroupInt func(name string) (int, bool) + GroupIntOr func(name string, fallback int) int + GroupIntOrZero func(name string) int + GroupOr func(name string, fallback string) string + GroupOrEmpty func(name string) string + Groups func() map[string]string + Matches func() []string + type SyntaxError struct + Err error + func (e *SyntaxError) Error() string + func (e *SyntaxError) Is(err error) bool + func (e *SyntaxError) Unwrap() error