]> Cypherpunks repositories - gostls13.git/commit
testing/iotest: correct ErrReader signature and remove exported error
authorEmmanuel T Odeke <emmanuel@orijtech.com>
Mon, 17 Aug 2020 19:25:49 +0000 (12:25 -0700)
committerEmmanuel Odeke <emm.odeke@gmail.com>
Tue, 18 Aug 2020 00:08:36 +0000 (00:08 +0000)
commitdb4cda2ec0955854c8ff556ac19ec5e67d48d090
tree5fd92ea1827ca752bf31825cba4428171f5158f4
parent77a11c05d6a6f766c75f804ea9b8796f9a9f85a3
testing/iotest: correct ErrReader signature and remove exported error

Corrects ErrReader's signature to what was accepted in the approved
proposal, and also removes an exported ErrIO which wasn't part of
the proposal and is unnecessary.

The new signature allows users to customize their own errors.

While here, started examples, with ErrReader leading the way.

Updates #38781

Change-Id: Ia7f84721f11061343cfef8b1adc2b7b69bc3f43c
Reviewed-on: https://go-review.googlesource.com/c/go/+/248898
Run-TryBot: Emmanuel Odeke <emm.odeke@gmail.com>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/testing/iotest/example_test.go [new file with mode: 0644]
src/testing/iotest/logger_test.go
src/testing/iotest/reader.go
src/testing/iotest/reader_test.go