Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CompileError ¶
type CompileError struct {
// contains filtered or unexported fields
}
CompileError returned on regex compilation error
func (*CompileError) Error ¶
func (c *CompileError) Error() string
type NoMatchFoundError ¶
type NoMatchFoundError struct{}
NoMatchFoundError indicates no regex matches for given string
func (*NoMatchFoundError) Error ¶
func (n *NoMatchFoundError) Error() string
type NotStructPtrError ¶
type NotStructPtrError struct{}
NotStructPtrError returned when given target is not a truct pointer
func (*NotStructPtrError) Error ¶
func (n *NotStructPtrError) Error() string
type ParseError ¶
type ParseError struct {
// contains filtered or unexported fields
}
ParseError returned when the conversion to target struct field type has failed
func (*ParseError) Error ¶
func (p *ParseError) Error() string
type Regexp ¶
type Regexp[T any] struct { // contains filtered or unexported fields }
func CompileWithDefaults ¶
func MustCompile ¶
func MustCompileWithDefaults ¶
func (*Regexp[T]) FindAllString ¶
func (*Regexp[T]) FindString ¶
func (*Regexp[T]) MatchString ¶
type RequiredGroupIsEmpty ¶
type RequiredGroupIsEmpty struct {
// contains filtered or unexported fields
}
RequiredGroupIsEmpty returned when a required group is empty in the re match
func (*RequiredGroupIsEmpty) Error ¶
func (r *RequiredGroupIsEmpty) Error() string
type TypeNotParsableError ¶
type TypeNotParsableError struct {
// contains filtered or unexported fields
}
TypeNotParsableError returned when the type of struct field is not parsable
func (*TypeNotParsableError) Error ¶
func (t *TypeNotParsableError) Error() string
type UnknownGroupError ¶
type UnknownGroupError struct {
// contains filtered or unexported fields
}
UnknownGroupError returned when given regex group tag isn't exists in compiled regex groups
func (*UnknownGroupError) Error ¶
func (u *UnknownGroupError) Error() string
Click to show internal directories.
Click to hide internal directories.