1
0
mirror of https://github.com/golang/go synced 2024-10-06 21:21:22 -06:00
go/src/pkg/old/template
Rob Pike 5be24046c7 all: avoid bytes.NewBuffer(nil)
The practice encourages people to think this is the way to
create a bytes.Buffer when new(bytes.Buffer) or
just var buf bytes.Buffer work fine.
(html/token.go was missing the point altogether.)

R=golang-dev, bradfitz, r
CC=golang-dev
https://golang.org/cl/5637043
2012-02-06 14:09:00 +11:00
..
doc.go old/template: copy code from template 2011-08-15 15:16:57 +10:00
execute.go old/template: copy code from template 2011-08-15 15:16:57 +10:00
format.go old/template: copy code from template 2011-08-15 15:16:57 +10:00
parse.go use new strconv API 2011-12-05 15:48:46 -05:00
template_test.go all: avoid bytes.NewBuffer(nil) 2012-02-06 14:09:00 +11:00