Comment by nemo1618

11 years ago

IMO, the author's "copy data to stdout" example betrays a lack of language understanding. Here's a more idiomatic version: http://play.golang.org/p/ZWatRuj3Q_

Plus given Go's focus on external dependencies, a common task like reading commandline parameters can (and should) be done with a library that solved that problem for you already - don't reinvent the wheel, and such.

Thanks! I'm just learning go (started last night), but I couldn't believe there wasn't a better way. It felt like a straw man example.