1
0
mirror of https://github.com/golang/go synced 2024-11-21 15:14:43 -07:00

exp/template: add missing dotNode case.

R=r
CC=golang-dev
https://golang.org/cl/4672044
This commit is contained in:
David Symonds 2011-07-06 15:14:10 +10:00
parent 9495dd31d2
commit 9d5ed1744a

View File

@ -447,6 +447,8 @@ func (s *state) evalEmptyInterface(data reflect.Value, typ reflect.Type, n node)
switch n := n.(type) {
case *boolNode:
return reflect.ValueOf(n.true)
case *dotNode:
return data
case *fieldNode:
return s.evalFieldNode(data, n, nil, reflect.Value{})
case *identifierNode: