[go-nuts] Possible to stream database/sql rows to text/template?

2018-02-14 Thread Tamás Gulácsi
"{{range pipeline}} T1 {{end}} The value of the pipeline must be an array, slice, map, or channel." So you can use a channel with slices. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails f

[go-nuts] Possible to stream database/sql rows to text/template?

2018-02-14 Thread Matt R.
I'm interested in streaming results from a *database/sql* query to a template rendered with *html/template*. More specifically, for performance reasons, I'm interested in streaming an array of results from the database straight to text/template without allocating a slice beforehand. My idea is