go/src/archive/zip
Kenji Yano fda8269cc6 archive/zip: support "end of central directory record comment"
This change added support "end of central directory record comemnt" to the Writer.

There is a new exported field Writer.Comment in this change.
If invalid size of comment was set, Close returns error without closing resources.

Fixes #21634

Change-Id: Ifb62bc6c7f81b9257ac83eb570ad9915de727f8c
Reviewed-on: https://go-review.googlesource.com/59310
Reviewed-by: Joe Tsai <thebrokentoaster@gmail.com>
Run-TryBot: Joe Tsai <thebrokentoaster@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2017-08-31 02:48:46 +00:00
..
testdata Revert: "archive/zip: handle mtime in NTFS/UNIX/ExtendedTS extra fields" 2016-12-20 01:39:35 +00:00
example_test.go archive/zip: clarify expectations of RegisterCompressor and RegisterDecompressor 2016-01-27 00:22:03 +00:00
reader.go Revert: "archive/zip: handle mtime in NTFS/UNIX/ExtendedTS extra fields" 2016-12-20 01:39:35 +00:00
reader_test.go Revert: "archive/zip: handle mtime in NTFS/UNIX/ExtendedTS extra fields" 2016-12-20 01:39:35 +00:00
register.go archive/zip: replace RWMutex with sync.Map 2017-04-29 17:21:43 +00:00
struct.go archive/zip: update the ZIP spec link 2017-02-01 21:11:53 +00:00
writer.go archive/zip: support "end of central directory record comment" 2017-08-31 02:48:46 +00:00
writer_test.go archive/zip: support "end of central directory record comment" 2017-08-31 02:48:46 +00:00
zip_test.go archive/zip: fix Writer to validate file 2017-08-13 17:33:10 +00:00