From d2b73730b74ed103add581d992cbca31012b0f3b Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Mon, 17 Oct 2011 18:23:59 -0400 Subject: [PATCH] exp/template/html: do not depend on reflection on internal fields R=golang-dev, r CC=golang-dev https://golang.org/cl/5286049 --- src/pkg/exp/template/html/context.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/pkg/exp/template/html/context.go b/src/pkg/exp/template/html/context.go index de073f134a..c44df4debc 100644 --- a/src/pkg/exp/template/html/context.go +++ b/src/pkg/exp/template/html/context.go @@ -25,6 +25,10 @@ type context struct { err *Error } +func (c context) String() string { + return fmt.Sprintf("{%v %v %v %v %v %v %v}", c.state, c.delim, c.urlPart, c.jsCtx, c.attr, c.element, c.err) +} + // eq returns whether two contexts are equal. func (c context) eq(d context) bool { return c.state == d.state && -- 2.50.0