-
Notifications
You must be signed in to change notification settings - Fork 17.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
text/template: missingkey=zero behaves unexpectedly with map[string]any #71595
Comments
The text/template package prints a nil value of type |
I think it would help if the existing documentation at least mentioned this behavior, so that users don't waste time debugging. If I had searched for |
The behavior isn't really related to Perhaps the docs should have a section on how values are printed. |
Go version
go1.23.6
Output of
go env
in your module/workspace:What did you do?
What did you see happen?
What did you expect to see?
The text was updated successfully, but these errors were encountered: