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: panic during Clone #3281

Closed
rsc opened this issue Mar 11, 2012 · 3 comments
Closed

html/template: panic during Clone #3281

rsc opened this issue Mar 11, 2012 · 3 comments
Milestone

Comments

@rsc
Copy link
Contributor

rsc commented Mar 11, 2012

http://play.golang.org/p/eu1yME6pJU

    t := template.New("all")
    template.Must(t.New("t1").Parse(`{{define "foo"}}foo{{end}}`))
    t.Clone()

panics in Clone.  The second line (Parse) is not necessary but
makes it seem a little more like a real program.
@robpike
Copy link
Contributor

robpike commented Mar 12, 2012

Comment 1:

Labels changed: added go1-must.

@bradfitz
Copy link
Contributor

Comment 2:

http://golang.org/cl/5819044

@bradfitz
Copy link
Contributor

Comment 3:

This issue was closed by revision 5f32c8b.

Status changed to Fixed.

@rsc rsc added fixed labels Mar 13, 2012
@rsc rsc added this to the Go1 milestone Apr 10, 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
Development

No branches or pull requests

4 participants