We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Inside of {{range (root).A}} loop, I wanted use (root).B. But intead it refers (root).A.B.
I noticed it's expected behavior, but I couldn't find what is the root variable in the document of text/template but found in stackoverflow.
I think we need explanation of what is root variable in the standard document of text/template.
The text was updated successfully, but these errors were encountered:
The variable $ is documented in the section on variables:
When execution begins, $ is set to the data argument passed to Execute, that is, to the starting value of dot.
Sorry, something went wrong.
Ah, I didn't catch that..
I still think it's needs more clarification. (for non-english users?) But that purely depends on go-team's decision.
Thank you for letting me know. @lstokeworth
No branches or pull requests
Inside of {{range (root).A}} loop, I wanted use (root).B. But intead it refers (root).A.B.
I noticed it's expected behavior, but I couldn't find what is the root variable in the document of text/template but found in stackoverflow.
I think we need explanation of what is root variable in the standard document of text/template.
The text was updated successfully, but these errors were encountered: