You are ignoring the past, future and features of GOLANG HTML when you say HTML comments are removed as a default. I'm guessing the original design transmitted HTML comments and they just suppressed them. At some point, I'm guessing they will add a GOLANG HTML template switch that transmits HTML comments for things like debugging at the browser where variable substitution could be useful in HTML comments. If they eliminated processing, implementing such a switch could present a challenge.
On Thu, Jan 2, 2025 at 12:31 AM 'Brian Candler' via golang-nuts < golang-nuts@googlegroups.com> wrote: > On Wednesday, 1 January 2025 at 21:44:25 UTC Mike Schinkel wrote: > > If it stripped HTML comments then it would not be possible to generate > output that contains wanted comments. > > > But it *does* strip comments, doesn't it? > https://go.dev/play/p/0EChuy5CjyH > > -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to golang-nuts+unsubscr...@googlegroups.com. > To view this discussion visit > https://groups.google.com/d/msgid/golang-nuts/ae657a69-8ff7-42aa-8c26-b52a0de9b32cn%40googlegroups.com > <https://groups.google.com/d/msgid/golang-nuts/ae657a69-8ff7-42aa-8c26-b52a0de9b32cn%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/golang-nuts/CAByJhJ%3DQgKdOLQ07tPzP1gn1WXpou%2B4_NkYmaSjdim3h0HSa6w%40mail.gmail.com.