Yes of course. At least your version is easier for humans to read. In the application, I expect the whole regexp thing is trivially small part of the execution process. But I'm trying to write proper idiomatic go, and yours is nicer
-- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/2f24866b-43e8-4058-8784-aef89cf570c2n%40googlegroups.com.