You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
WITH DIR+NEW:
Hello
WITH DIR / WITHOUT NEW:
Hello
WITHOUT DIR / WITH NEW:
Hello
WITHOUT DIR+NEW:
Hello
What did you see instead?
WITH DIR+NEW:
template: template/template.tpl: "template/template.tpl" is an incomplete or empty template
WITH DIR / WITHOUT NEW:
Hello
WITHOUT DIR / WITH NEW:
Hello
WITHOUT DIR+NEW:
Hello
The text was updated successfully, but these errors were encountered:
Since the templates created by ParseFiles are named by the base names of the argument files, t should usually have the name of one of the (base) names of the files. If it does not, depending on t's contents before calling ParseFiles, t.Execute may fail. In that case use t.ExecuteTemplate to execute a valid template.
There really is no template called template/template.tpl
Depending how you create your
*template.Template
and where the template is,Execute()
can return an errorWhat version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes ->
go version devel go1.19-1ebc983 Thu Jul 7 21:15:48 2022 +0000 darwin/amd64
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
setup:
main.go
What did you expect to see?
What did you see instead?
The text was updated successfully, but these errors were encountered: