If you can live with cgo dependencies, then you might want to look at a go wrapper around PCRE, which is the "go-to" implementation for fully-featured regexps.
e.g. https://github.com/rubrikinc/go-pcre (untested by me, and it's one of several forks) -- 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/46c4c051-1355-4602-903b-6be32626d8d1n%40googlegroups.com.