text/template/parse: Pos is wrong in FieldNodes like .A.B.C #43388
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
The template string
parses as
The offsets in the FieldNodes are after the first identifier. That is, in
{{.Moo.N.P}}
on line 1, the offset is 6, not 2. (And the same for the other FieldNodes.) If there is only one identifier in the FieldNode, then the offset is correct.The text was updated successfully, but these errors were encountered: