Wrote 'reg.FindSubmatch()' which returns the leftmost match with submatches, renamed 'isValid' to 'IsValid' to export it, renamed 'ToString' to 'String'

This commit is contained in:
2025-02-01 11:06:03 -05:00
parent 206fea34cd
commit b5e6bc112c
2 changed files with 22 additions and 7 deletions

View File

@@ -137,7 +137,7 @@ func main() {
fmt.Fprintf(out, "Line %d:\n", lineNum)
}
for _, m := range matchIndices {
fmt.Fprintf(out, "%s\n", m.ToString())
fmt.Fprintf(out, "%s\n", m.String())
}
err := out.Flush()
if err != nil {