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() { ...@@ -46,7 +46,7 @@ func main() {
// Read and parse the input. // Read and parse the input.
name := flag.Args()[0] name := flag.Args()[0]
tmpl := template.New(name).Funcs(template.FuncMap{"code": code}) 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) log.Fatal(err)
} }
......
...@@ -11,7 +11,7 @@ import ( ...@@ -11,7 +11,7 @@ import (
"io" "io"
"regexp" "regexp"
"strings" "strings"
"template" // for htmlEscape "exp/template" // for HTMLEscape
) )
func isWhitespace(ch byte) bool { return ch == ' ' || ch == '\t' || ch == '\n' || ch == '\r' } 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