28 lines
469 B
Go
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
|
|
}
|
|
|
|
*/
|
|
)
|