From bf453eba9008c37b56ac5239e585040414e8e28e Mon Sep 17 00:00:00 2001 From: Nigel Tao Date: Tue, 4 Jan 2011 15:52:03 +1100 Subject: [PATCH] doc: update Effective Go for template API change. The original change 3378041 was submitted in December 2010: template: change the signature of formatters for future development. R=adg CC=golang-dev https://golang.org/cl/3862041 --- doc/effective_go.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/effective_go.html b/doc/effective_go.html index ab21edfbba..b70d60a925 100644 --- a/doc/effective_go.html +++ b/doc/effective_go.html @@ -2857,8 +2857,8 @@ func QR(w http.ResponseWriter, req *http.Request) { templ.Execute(req.FormValue("s"), w) } -func UrlHtmlFormatter(w io.Writer, v interface{}, fmt string) { - template.HTMLEscape(w, []byte(http.URLEscape(v.(string)))) +func UrlHtmlFormatter(w io.Writer, fmt string, v ...interface{}) { + template.HTMLEscape(w, []byte(http.URLEscape(v[0].(string)))) }