diff options
Diffstat (limited to 'libgo/go/template/parse/set.go')
-rw-r--r-- | libgo/go/template/parse/set.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libgo/go/template/parse/set.go b/libgo/go/template/parse/set.go index b909f71cd76..d363eeff080 100644 --- a/libgo/go/template/parse/set.go +++ b/libgo/go/template/parse/set.go @@ -6,14 +6,13 @@ package parse import ( "fmt" - "os" "strconv" ) // Set returns a slice of Trees created by parsing the template set // definition in the argument string. If an error is encountered, // parsing stops and an empty slice is returned with the error. -func Set(text, leftDelim, rightDelim string, funcs ...map[string]interface{}) (tree map[string]*Tree, err os.Error) { +func Set(text, leftDelim, rightDelim string, funcs ...map[string]interface{}) (tree map[string]*Tree, err error) { tree = make(map[string]*Tree) defer (*Tree)(nil).recover(&err) lex := lex("set", text, leftDelim, rightDelim) |