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

html/template: Funcs refers to template.FuncMap (in text/template) #2546

Closed
rsc opened this issue Dec 9, 2011 · 3 comments
Closed

html/template: Funcs refers to template.FuncMap (in text/template) #2546

rsc opened this issue Dec 9, 2011 · 3 comments
Milestone

Comments

@rsc
Copy link
Contributor

rsc commented Dec 9, 2011

It's confusing for html/template to refer to text/template types
in its documentation.  Maybe it should define its own FuncMap type.

I tried to write template.FuncMap{ ... }
and was very confused as to why the compiler
said that didn't exist, when it was right there in the docs:


func (t *Template) Funcs(funcMap template.FuncMap) *Template
@rsc
Copy link
Contributor Author

rsc commented Dec 9, 2011

Comment 1:

Labels changed: added priority-later, removed priority-medium.

@rsc
Copy link
Contributor Author

rsc commented Dec 12, 2011

Comment 2:

Labels changed: added priority-go1.

@robpike
Copy link
Contributor

robpike commented Dec 14, 2011

Comment 3:

This issue was closed by revision 1402d1a.

Status changed to Fixed.

@rsc rsc added fixed labels Dec 14, 2011
@rsc rsc added this to the Go1 milestone Apr 10, 2015
@rsc rsc removed the priority-go1 label Apr 10, 2015
@golang golang locked and limited conversation to collaborators Jun 24, 2016
@rsc rsc unassigned robpike Jun 22, 2022
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants