Commit ff0240da authored by Rob Pike's avatar Rob Pike

misc: fix a couple of template uses preparatory to the big switch.

R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/4876057
parent 1d8f822c
......@@ -46,7 +46,7 @@ func main() {
// Read and parse the input.
name := flag.Args()[0]
tmpl := template.New(name).Funcs(template.FuncMap{"code": code})
if err := tmpl.ParseFile(name); err != nil {
if _, err := tmpl.ParseFile(name); err != nil {
log.Fatal(err)
}
......
......@@ -11,7 +11,7 @@ import (
"io"
"regexp"
"strings"
"template" // for htmlEscape
"exp/template" // for HTMLEscape
)
func isWhitespace(ch byte) bool { return ch == ' ' || ch == '\t' || ch == '\n' || ch == '\r' }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment