go_goutils/remap/types.go
brent saner 368ae0cb8e
v1.9.2
FIX:
* Yeah so the ReMap.Map* stuff was kind of broken hard. It's fixed now.
2025-08-04 04:26:52 +00:00

24 lines
444 B
Go

package remap
import (
`regexp`
)
type (
// ReMap provides some map-related functions around a regexp.Regexp.
ReMap struct {
*regexp.Regexp
}
/*
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
}
)