From bedfa4e1c37bd08063865da628f242d27ca06ec4 Mon Sep 17 00:00:00 2001 From: Daniel Theophanes Date: Thu, 21 Jun 2018 10:41:26 -0700 Subject: text/template/parse: undo breaking API changes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit golang.org/cl/84480 altered the API for the parse package for clarity and consistency. However, the changes also broke the API for consumers of the package. This CL reverts the API to the previous spelling, adding only a single new exported symbol. Fixes #25968 Change-Id: Ieb81054b61eeac7df3bc3864ef446df43c26b80f Reviewed-on: https://go-review.googlesource.com/120355 Reviewed-by: Daniel Martí Reviewed-by: Rob Pike Run-TryBot: Daniel Martí TryBot-Result: Gobot Gobot --- src/html/template/escape.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/html') diff --git a/src/html/template/escape.go b/src/html/template/escape.go index 8517620d3c..f12dafa870 100644 --- a/src/html/template/escape.go +++ b/src/html/template/escape.go @@ -142,7 +142,7 @@ func (e *escaper) escape(c context, n parse.Node) context { // escapeAction escapes an action template node. func (e *escaper) escapeAction(c context, n *parse.ActionNode) context { - if len(n.Pipe.Vars) != 0 { + if len(n.Pipe.Decl) != 0 { // A local variable assignment, not an interpolation. return c } -- cgit v1.3