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
"missingkey=default" or "missingkey=invalid"
The default behavior: Do nothing and continue execution.
If printed, the result of the index operation is the string
"".
"missingkey=zero"
The operation returns the zero value for the map type's element.
"missingkey=error"
Execution stops immediately with an error.
The text was updated successfully, but these errors were encountered:
Currently, there is no support to parse and execute templates with missing key options. https://github.com/nicksnyder/go-i18n/blob/main/v2/internal/template.go#L36C28-L36C28
As a result, it is not possible to return error if any variable is missing in render payload
Kindly consider supporting text/template options https://pkg.go.dev/text/template#Template.Option
The text was updated successfully, but these errors were encountered: