Hacker News new | ask | show | jobs
by ryanpepper 3173 days ago
Does Go have templating?
2 comments

Templating is built right into the Stdlib https://golang.org/pkg/text/template/

The only 3rd party library I pull in to build web servers is gorilla (routing, sessions) and a database driver .

Everything else you need is in the go standard library .

I believe the parent means templating in the sense of generic types: https://en.wikipedia.org/wiki/Template_(C%2B%2B).
Nope! And that's most people's main problem with it.
Wrong. Go has templating.
yeah, maybe, if what you want is to fill some strings in a template and not to create a type that's generic over other types.