From b557aa0e2da21dd847dd4d8be9063b03b6e6ff3c Mon Sep 17 00:00:00 2001 From: Leonard Lyubich Date: Thu, 17 Feb 2022 18:34:38 +0300 Subject: [PATCH] [#131] client: Add docs to `io.Reader` implementations Signed-off-by: Leonard Lyubich --- client/object_get.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/object_get.go b/client/object_get.go index a8b68acc..46b3374f 100644 --- a/client/object_get.go +++ b/client/object_get.go @@ -239,6 +239,7 @@ func (x *ObjectReader) Close() (*ResObjectGet, error) { return x.close(true) } +// Read implements io.Reader of the object payload. func (x *ObjectReader) Read(p []byte) (int, error) { n, ok := x.readChunk(p) if !ok { @@ -613,6 +614,7 @@ func (x *ObjectRangeReader) Close() (*ResObjectRange, error) { return x.close(true) } +// Read implements io.Reader of the object payload. func (x *ObjectRangeReader) Read(p []byte) (int, error) { n, ok := x.readChunk(p) if !ok {