]> Cypherpunks repositories - gostls13.git/commit
archive/zip: add NewWriterWithOptions
authorGeert-Johan Riemer <gjr19912@gmail.com>
Mon, 19 Jan 2015 13:39:33 +0000 (14:39 +0100)
committerAndrew Gerrand <adg@golang.org>
Thu, 12 Mar 2015 00:13:29 +0000 (00:13 +0000)
commitde573f87484df3278d9b7412da1964313aaeb90a
tree4e850bcbbea5ea5cb85e7ed081422bea7a901312
parent0d6a0d6c3f98fcdd5f5826106bc9c49f348e3d75
archive/zip: add NewWriterWithOptions

When appending zip data to existing data such as a binary file the
zip headers must use the correct offset. NewWriterWithOptions
allows creating a Writer that uses the provided offset in the zip
headers.

Fixes #8669

Change-Id: I6ec64f1e816cc57b6fc8bb9e8a0918e586fc56b0
Reviewed-on: https://go-review.googlesource.com/2978
Reviewed-by: Andrew Gerrand <adg@golang.org>
src/archive/zip/writer.go
src/archive/zip/writer_test.go