Thanks for the follow up Eric. Your experience with the concurrency
primitives lines up with my experience porting projects from various
languages into Go. The ability to maintain exceptionally low cognitive
overhead when adding concurrency is pretty amazing.
On an unrelated note, if in the fut
There’s a pure Go (no cgo needed) regexp engine that supports lookahead and
lookbehind here: https://github.com/dlclark/regexp2
However, and I say this as someone who maintains that regex library, use this
type of regex with caution. I would highly recommend changing your code to use
the nativ