]> Cypherpunks repositories - gostls13.git/commit
archive/zip: replace Writer.Comment field with SetComment method
authorRuss Cox <rsc@golang.org>
Wed, 22 Nov 2017 16:10:47 +0000 (11:10 -0500)
committerRuss Cox <rsc@golang.org>
Wed, 29 Nov 2017 16:27:42 +0000 (16:27 +0000)
commitbe67e269b4a4161f4276e2619c5019a26e94541c
tree41b54f11e6db41b77d7fb1b109b9cfb3835e0f42
parent4f6d8a59eae73f3ce4e67e8e42a2bc25e7216ec3
archive/zip: replace Writer.Comment field with SetComment method

A method is more in keeping with the rest of the Writer API and
incidentally allows the comment error to be reported earlier.

Fixes #22737.

Change-Id: I1eee2103a0720c76d0c394ccd6541e6219996dc0
Reviewed-on: https://go-review.googlesource.com/79415
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Joe Tsai <thebrokentoaster@gmail.com>
src/archive/zip/writer.go
src/archive/zip/writer_test.go