Skip to content

text/template: not documented that the $ is root variable. #13592

@kybin

Description

@kybin

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions