On Wed, Sep 02, 2015 at 04:51:44PM -0700, Hein Meling wrote:
> I got some preliminary tests working, which makes me confident that I can
> do it. However, I wanted to ask if this approach is considered idiomatic Go
> these days?? I really like the approach, and I don't worry about
> performance if that ever was an issue.
When Rob held that talk, there was a restriction in Go that meant that a
goroutine started during initialization might not run to completion.
That restriction was lifted, so you can omit the presented workaround,
if you'd like so. The text/template package has a slightly revised
version of the lexer presented in the talk.
Aside from that, the talk contents are still as relevant as they were
back then. It's a very nice approach, I think.