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
I expected that the ability to write {{ /* and/or */ }} within template comments as {{- /* and */ -}} works fine (and actually require a spacing).
What did you see instead?
For using {{ /* i saw panic: template: startspace:1: unexpected "/" in command.
For using /* }} i saw panic: template: endspace:1: unexpected comment ends before closing delimiter in input
/cc @bacongobbler - thanks for the go playground example
The text was updated successfully, but these errors were encountered:
@robpike Thank you for your guidance on this! Sorry for being slow to follow it up! It seems to me my issue resided behind in front of the monitor (me), as I was not searching and looking within the documentation properly. I'm happy to close this as well, but I'll let you or Zheng Dayu do it as I see the referenced discussion here: https://go-review.googlesource.com/c/go/+/107663/1/src/text/template/doc.go
What version of Go are you using (
go version
)?1.10.1
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
What did you do?
https://play.golang.org/p/TwK2wtT5ty6
What did you expect to see?
I expected that the ability to write
{{ /*
and/or*/ }}
within template comments as{{- /*
and*/ -}}
works fine (and actually require a spacing).What did you see instead?
For using
{{ /*
i sawpanic: template: startspace:1: unexpected "/" in command
.For using
/* }}
i sawpanic: template: endspace:1: unexpected comment ends before closing delimiter in input
/cc @bacongobbler - thanks for the go playground example
The text was updated successfully, but these errors were encountered: