diff options
author | Nigel Tao <nigeltao@golang.org> | 2011-01-04 15:52:03 +1100 |
---|---|---|
committer | Nigel Tao <nigeltao@golang.org> | 2011-01-04 15:52:03 +1100 |
commit | bf453eba9008c37b56ac5239e585040414e8e28e (patch) | |
tree | 161b8810e19e8a89349f60a1735584232c4509b6 | |
parent | 5530bf90cdbd96b01f090c9f83020f39cd5cdacc (diff) | |
download | go-bf453eba9008c37b56ac5239e585040414e8e28e.tar.gz go-bf453eba9008c37b56ac5239e585040414e8e28e.zip |
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
-rw-r--r-- | doc/effective_go.html | 4 |
1 files 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)))) } |