Versions in this module Expand all Collapse all v1 v1.0.0 Apr 14, 2025 Changes in this version + type BMatch = Match[[]byte] + type BReplacement struct + func (r BReplacement) ReplaceFunc(f func([]byte) []byte) + func (r BReplacement) ReplaceLiteral(val []byte) + func (r BReplacement) ReplaceTemplate(val []byte) + type BSub = Sub[[]byte] + type BSubs = Subs[[]byte] + type Bytes struct + func (b Bytes) Contains() bool + func (b Bytes) Find() iter.Seq[BMatch] + func (b Bytes) Replace(res *[]byte) iter.Seq[BReplacement] + type Match struct + Content T + Span Span + Subs Subs[T] + type RMatch struct + Content []rune + Span Span + Subs RSubs + type RReplacement struct + func (r RReplacement) ReplaceFunc(f func([]rune) []rune) + func (r RReplacement) ReplaceLiteral(val []rune) + func (r RReplacement) ReplaceTemplate(val []rune) + type RSub = Sub[[]rune] + type RSubs struct + func (s RSubs) At(i int) RSub + func (s RSubs) Iter() iter.Seq[RSub] + func (s RSubs) Len() int + func (s RSubs) Slice() []RSub + type Regex struct + func New(raw stringLiteral) Regex + func (r Regex) Bytes(src []byte) Bytes + func (r Regex) Runes(src []rune) Runes + func (r Regex) String(src string) String + type Runes struct + func (b Runes) Contains() bool + func (b Runes) Find() iter.Seq[RMatch] + func (b Runes) Replace(res *[]rune) iter.Seq[RReplacement] + type SMatch = Match[string] + type SReplacement struct + func (r SReplacement) ReplaceFunc(f func(string) string) + func (r SReplacement) ReplaceLiteral(val string) + func (r SReplacement) ReplaceTemplate(val string) + type SSub = Sub[string] + type SSubs = Subs[string] + type Span struct + End int + Start int + func (s Span) Len() int + type String struct + func (b String) Contains() bool + func (b String) Find() iter.Seq[SMatch] + func (s String) Replace(res *string) iter.Seq[SReplacement] + type Sub struct + Content T + Span Span + type Subs struct + func (s Subs[T]) At(i int) Sub[T] + func (s Subs[T]) Iter() iter.Seq[Sub[T]] + func (s Subs[T]) Len() int + func (s Subs[T]) Slice() []Sub[T]