-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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: does not call .String method for formatting #3073
Labels
Milestone
Comments
There's a spurious angle bracket inside the first element of htmlstr, but I don't think it's the issue. Labels changed: added priority-go1, go1-must, removed priority-triage. Owner changed to builder@golang.org. Status changed to Accepted. |
Shorter example: package main import ( "log" "net/url" "html/template" "os" ) func main() { u, _ := url.Parse("test/") if err := template.Must(template.New("x").Parse("{{.}}\n")).Execute(os.Stdout, u); err != nil { log.Fatal(err) } } prints { <nil> test/ } should print test/ It is, for some reason, not calling u's String method. |
This issue was closed by revision 0ce6c87. Status changed to Fixed. |
This issue was closed.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Attachments:
The text was updated successfully, but these errors were encountered: