diff options
author | Rob Pike <r@golang.org> | 2009-11-10 18:24:06 -0800 |
---|---|---|
committer | Rob Pike <r@golang.org> | 2009-11-10 18:24:06 -0800 |
commit | 8db6370d786337842aa6a86621817c6880f4b093 (patch) | |
tree | 4616ceee3c533e6f55ee0aada7fa256a1ef4adf2 | |
parent | 6672eb37975d582810682f1312f5d1906f55f026 (diff) | |
download | go-8db6370d786337842aa6a86621817c6880f4b093.tar.gz go-8db6370d786337842aa6a86621817c6880f4b093.zip |
fix final program to have Html->HTML
R=rsc
CC=go-dev
https://golang.org/cl/152050
-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 5f1bf31bbf..e8acf08dfb 100644 --- a/doc/effective_go.html +++ b/doc/effective_go.html @@ -2394,7 +2394,7 @@ import ( var addr = flag.String("addr", ":1718", "http service address") // Q=17, R=18 var fmap = template.FormatterMap{ - "html": template.HtmlFormatter, + "html": template.HTMLFormatter, "url+html": UrlHtmlFormatter, } var templ = template.MustParse(templateStr, fmap) @@ -2413,7 +2413,7 @@ func QR(c *http.Conn, req *http.Request) { } func UrlHtmlFormatter(w io.Writer, v interface{}, fmt string) { - template.HtmlEscape(w, strings.Bytes(http.URLEscape(v.(string)))); + template.HTMLEscape(w, strings.Bytes(http.URLEscape(v.(string)))); } |