go_goutils/remap/types.go
brent saner bae0abe960
v1.9.3
IMPROVED:
* Better documentation for remap
2025-08-12 00:06:51 -04:00

28 lines
469 B
Go

package remap
import (
"regexp"
)
type (
// ReMap provides some map-related functions around a regexp.Regexp.
ReMap struct {
*regexp.Regexp
}
// TODO?
/*
ExplicitStringMatch is used with ReMap.MapStringExplicit to indicate if a
capture group result is a hit (a group matched, but e.g. the match value is empty string)
or not (a group did not match).
*/
/*
ExplicitStringMatch struct {
Group string
IsMatch bool
Value string
}
*/
)