]> Cypherpunks repositories - gostls13.git/commit
archive/zip: add Writer.Flush
authorBrad Fitzpatrick <bradfitz@golang.org>
Mon, 1 Sep 2014 04:32:13 +0000 (21:32 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Mon, 1 Sep 2014 04:32:13 +0000 (21:32 -0700)
commit76fb8a5e416d400c4c07b555cad91f860e9ec4bb
treedcec2ff33872a774d4b27ce6b75c72393049254f
parent4dba769b7352b10fa95070f5095b93c4f5908f4d
archive/zip: add Writer.Flush

This is needed for callers to be able to keep track of the
writing position within a zip file. Otherwise it's not
possible to compute the size of headers, and the TOC isn't
written until the very end.

LGTM=adg
R=adg
CC=golang-codereviews
https://golang.org/cl/134210043
src/pkg/archive/zip/writer.go
src/pkg/archive/zip/writer_test.go