From 9d5ed1744a794e2dbaa20ae241e944adb37854a4 Mon Sep 17 00:00:00 2001 From: David Symonds Date: Wed, 6 Jul 2011 15:14:10 +1000 Subject: [PATCH] exp/template: add missing dotNode case. R=r CC=golang-dev https://golang.org/cl/4672044 --- src/pkg/exp/template/exec.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pkg/exp/template/exec.go b/src/pkg/exp/template/exec.go index befb2ded9ac..1857e403ff7 100644 --- a/src/pkg/exp/template/exec.go +++ b/src/pkg/exp/template/exec.go @@ -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: