Closed imjasonh closed 2 years ago
Instead of regexp.MustCompile("[a-z0-9]+") something like re.OneOrMore(re.LowerCase, re.Numeral). With gofmt enforced nesting it should be much easier to read and debug.
regexp.MustCompile("[a-z0-9]+")
re.OneOrMore(re.LowerCase, re.Numeral)
For bonus points, accept a regexp string and generate the literate equivalent.
https://github.com/hedhyw/rex
Instead of
regexp.MustCompile("[a-z0-9]+")
something likere.OneOrMore(re.LowerCase, re.Numeral)
. With gofmt enforced nesting it should be much easier to read and debug.For bonus points, accept a regexp string and generate the literate equivalent.