tordam

A library for peer discovery inside the Tor network
git clone https://git.parazyd.org/tordam
Log | Files | Refs | README | LICENSE

commit 4c1eb2d904aadccdc11d021d403437090f33ebd8
parent 7a90ac48a57eafee638e1c2b720487bc188ccdb5
Author: parazyd <parazyd@dyne.org>
Date:   Thu, 21 Dec 2017 13:31:42 +0100

Fix comment for GzipEncode

Diffstat:
Mpkg/damlib/helpers.go | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pkg/damlib/helpers.go b/pkg/damlib/helpers.go @@ -28,8 +28,8 @@ func StringInSlice(str string, slice []string) bool { return false } -// GzipEncode compresses a given string using gzip, and returns it as a base64 -// encoded string. Returns error upon failure. +// GzipEncode compresses a given slice of bytes using gzip, and returns it as +// a base64 encoded string. Returns error upon failure. func GzipEncode(data []byte) (string, error) { var b bytes.Buffer gz := gzip.NewWriter(&b)