]> Cypherpunks repositories - gostls13.git/commitdiff
fix final program to have Html->HTML
authorRob Pike <r@golang.org>
Wed, 11 Nov 2009 02:24:06 +0000 (18:24 -0800)
committerRob Pike <r@golang.org>
Wed, 11 Nov 2009 02:24:06 +0000 (18:24 -0800)
R=rsc
CC=go-dev
https://golang.org/cl/152050

doc/effective_go.html

index 5f1bf31bbf28492d1b6f59880b8c31f8afea1cad..e8acf08dfbf7edd0f70711b2dc564862b36b49c1 100644 (file)
@@ -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))));
 }