Hacker News new | ask | show | jobs
by evmunro 1388 days ago
You're right, it's likely that almost nobody is using `fmt.Sprintf` to build SQL queries in production.

Templating and `fmt.Sprintf` are essentially the same thing in this context - `Sprintf` just gets the point across in fewer lines of code, and allows people to come up with realistic scenarios themselves.

1 comments

I’m talking about HTML templating, not templating SQL statements.