text/template: template.New("").ParseFiles("path/to/file") fails with "is an incomplete or empty template" #61139
Labels
FrozenDueToAge
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
What version of Go are you using (
go version
)?go version go1.19.5 linux/amd64
Does this issue reproduce with the latest release?
Unknown
What operating system and processor architecture are you using (
go env
)?linux/amd64
What did you do?
example.tpl
issue.go
What did you expect to see?
What did you see instead?
Please note that the following program works as expected and produces the correct output:
issue.go, revised:
output:
tl;dr
.ParseFiles() doesn't work but passing the file contents to .Parse() does.
-day
The text was updated successfully, but these errors were encountered: