IMPROVED:
* Better documentation for remap
This commit is contained in:
brent saner
2025-08-12 00:06:51 -04:00
parent 368ae0cb8e
commit bae0abe960
3 changed files with 166 additions and 15 deletions

View File

@@ -1,7 +1,7 @@
package remap
import (
`regexp`
"regexp"
)
type (
@@ -10,14 +10,18 @@ type (
*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)
or not (a group did not match).
*/
/*
ExplicitStringMatch struct {
Group string
IsMatch bool
Value string
}
*/
ExplicitStringMatch struct {
Group string
IsMatch bool
Value string
}
)