Skip to content

text/template: extend {{range}} to support channels.  #4640

@gopherbot

Description

@gopherbot

by krolaw:

At the moment, large outputs of formatted data, require the data in large memory
consuming arrays.  Adding channel support seems to be a natural fit to the templates
writer, as the channel could be filled by a reader.

In my case, I want to reformat/convert large binary logs.  Template library is a perfect
fit, except I must load the data into an array first using ram, which, unfortunately,
ram requirements do not allow (embedded device with large compact flash).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions