1
0
mirror of https://github.com/golang/go synced 2024-10-07 01:21:21 -06:00
go/src/pkg/archive/zip
Nigel Tao cc9ed447d0 compress: make flate, gzip and zlib's NewWriterXxx functions all return
(*Writer, error) if they take a compression level, and *Writer otherwise.
Rename gzip's Compressor and Decompressor to Writer and Reader, similar to
flate and zlib.

Clarify commentary when writing gzip metadata that is not representable
as Latin-1, and fix io.EOF comment bug.

Also refactor gzip_test to be more straightforward.

Fixes #2839.

R=rsc, r, rsc, bradfitz
CC=golang-dev
https://golang.org/cl/5639057
2012-02-10 18:49:19 +11:00
..
testdata archive/zip: support full range of FileMode flags 2012-02-06 11:58:32 -02:00
reader_test.go archive/zip: support full range of FileMode flags 2012-02-06 11:58:32 -02:00
reader.go archive/zip: tweak API and docs. 2012-02-08 14:34:40 +11:00
struct.go archive/zip: support full range of FileMode flags 2012-02-06 11:58:32 -02:00
writer_test.go archive/zip: support full range of FileMode flags 2012-02-06 11:58:32 -02:00
writer.go compress: make flate, gzip and zlib's NewWriterXxx functions all return 2012-02-10 18:49:19 +11:00
zip_test.go os: turn FileStat.Sys into a method on FileInfo 2012-02-03 00:16:18 -02:00