|
|
@ -40,15 +40,15 @@ func (m Match) String() string {
|
|
|
|
for i, g := range m {
|
|
|
|
for i, g := range m {
|
|
|
|
if g.IsValid() {
|
|
|
|
if g.IsValid() {
|
|
|
|
toRet += fmt.Sprintf("Group %d\n", i)
|
|
|
|
toRet += fmt.Sprintf("Group %d\n", i)
|
|
|
|
toRet += g.toString()
|
|
|
|
toRet += g.String()
|
|
|
|
toRet += "\n"
|
|
|
|
toRet += "\n"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return toRet
|
|
|
|
return toRet
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Converts the Group into a string representation:
|
|
|
|
// String converts the Group into a string representation.
|
|
|
|
func (idx Group) toString() string {
|
|
|
|
func (idx Group) String() string {
|
|
|
|
return fmt.Sprintf("%d\t%d", idx.StartIdx, idx.EndIdx)
|
|
|
|
return fmt.Sprintf("%d\t%d", idx.StartIdx, idx.EndIdx)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|