1
0
mirror of https://github.com/golang/go synced 2024-10-04 10:11:21 -06:00
go/src/pkg/image/jpeg
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
..
fdct.go image/jpeg: add an encoder. 2011-04-19 11:00:47 +10:00
huffman.go src/pkg/[a-m]*: gofix -r error -force=error 2011-11-01 22:04:37 -04:00
idct.go image/jpeg: speed up decoding by inlining the clip function and 2011-05-09 17:25:32 -07:00
reader.go std: add struct field tags to untagged literals. 2012-02-03 10:12:25 +11:00
writer_test.go all: avoid bytes.NewBuffer(nil) 2012-02-06 14:09:00 +11:00
writer.go std: add struct field tags to untagged literals. 2012-02-03 10:12:25 +11:00