We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The html/template documentation has a snippet of code showing the usage of the HTML type. It does not use the "template" package name to scope it:
html/template
tmpl.Execute(out, HTML(`<b>World</b>`))
This code will throw an "undefined: HTML" error.
Instead, it should be like so:
tmpl.Execute(out, template.HTML(`<b>World</b>`))
The text was updated successfully, but these errors were encountered:
https://go-review.googlesource.com/3073
Sorry, something went wrong.
746dec5
No branches or pull requests
The
html/template
documentation has a snippet of code showing the usage of theHTML
type. It does not use the "template" package name to scope it:This code will throw an "undefined: HTML" error.
Instead, it should be like so:
The text was updated successfully, but these errors were encountered: