Skip to content

text/template: Improved template check #5944

@gopherbot

Description

@gopherbot

by kaixinlaoshu2008:

What steps will reproduce the problem?

template.Must(...) [no error]
template.Execute(...) [error]

And I confirm that the background code is correct

What is the expected output?

show the webpage

What do you see instead?

error

Which compiler are you using (5g, 6g, 8g, gccgo)?

8g

Which operating system are you using?

win7

Which version are you using?  (run 'go version')

go1.1

Please provide any additional information below.

I later found that the reasons:One more  <script> on the web page.
so i sugges improving template check

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions