Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
gopherbot opened this issue Jan 10, 2013 · 3 comments
Closed

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

gopherbot opened this issue Jan 10, 2013 · 3 comments
Milestone

Comments

@gopherbot
Copy link

@gopherbot gopherbot commented Jan 10, 2013

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).
@kisielk
Copy link
Contributor

@kisielk kisielk commented Jan 10, 2013

Comment 1:

I think it's simply not documented. It looks like using channels in template range
statements works just fine:
http://play.golang.org/p/Ei_N5SRQcQ
@kisielk
Copy link
Contributor

@kisielk kisielk commented Jan 11, 2013

Comment 2:

I submitted https://golang.org/cl/7082044/ to clarify the docs.
@adg
Copy link
Contributor

@adg adg commented Jan 12, 2013

Comment 3:

This issue was closed by revision ad63c7e.

Status changed to Fixed.

@rsc rsc added this to the Go1.1 milestone Apr 14, 2015
@rsc rsc removed the go1.1 label Apr 14, 2015
@golang golang locked and limited conversation to collaborators Jun 24, 2016
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.