diff options
author | Russ Cox <rsc@golang.org> | 2011-10-17 18:23:59 -0400 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2011-10-17 18:23:59 -0400 |
commit | d2b73730b74ed103add581d992cbca31012b0f3b (patch) | |
tree | e3487b44efa6755c3152fdb8398b980f416174e2 | |
parent | 95b4f8284f31fbfe1408cab5bf3cf804e91565d9 (diff) | |
download | go-d2b73730b74ed103add581d992cbca31012b0f3b.tar.gz go-d2b73730b74ed103add581d992cbca31012b0f3b.zip |
exp/template/html: do not depend on reflection on internal fields
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5286049
-rw-r--r-- | src/pkg/exp/template/html/context.go | 4 |
1 files changed, 4 insertions, 0 deletions
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 && |