http://codereview.appspot.com/4426066/diff/5001/src/pkg/io/ioutil/ioutil.go File src/pkg/io/ioutil/ioutil.go (right): http://codereview.appspot.com/4426066/diff/5001/src/pkg/io/ioutil/ioutil.go#newcode111 src/pkg/io/ioutil/ioutil.go:111: // NopWriter is an io.Writer on which all Write ...
12 years, 12 months ago
(2011-04-27 22:02:00 UTC)
#2
http://codereview.appspot.com/4426066/diff/5001/src/pkg/io/ioutil/ioutil.go File src/pkg/io/ioutil/ioutil.go (right): http://codereview.appspot.com/4426066/diff/5001/src/pkg/io/ioutil/ioutil.go#newcode111 src/pkg/io/ioutil/ioutil.go:111: // NopWriter is an io.Writer on which all Write ...
12 years, 12 months ago
(2011-04-27 22:25:43 UTC)
#3
On Apr 27, 2011, at 3:29 PM, Russ Cox wrote: > fmt.Fprintf(ioutil.Discard, "hello world") > ...
12 years, 12 months ago
(2011-04-27 22:37:03 UTC)
#5
On Apr 27, 2011, at 3:29 PM, Russ Cox wrote:
> fmt.Fprintf(ioutil.Discard, "hello world")
>
> looks good to me
i think the niceness of reading trumps the parallel with NopCloser (another name
i'm not thrilled with, although in that case i don't have a countersuggestion).
rename to Discard please.
-rob
whoops, just submitted before this came in. On Wed, Apr 27, 2011 at 3:45 PM, ...
12 years, 12 months ago
(2011-04-27 22:47:54 UTC)
#10
whoops, just submitted before this came in.
On Wed, Apr 27, 2011 at 3:45 PM, Andrew Gerrand <adg@golang.org> wrote:
> See also ignoreWriter in archive/tar/reader.go
>
> On 28 April 2011 08:42, <r@golang.org> wrote:
> > LGTM
> >
> > nice
> >
> >
> > http://codereview.appspot.com/4426066/
> >
>
Issue 4426066: code review 4426066: ioutil: add Discard, update tree.
(Closed)
Created 12 years, 12 months ago by bradfitz
Modified 12 years, 12 months ago
Reviewers: bradfitzgoog
Base URL:
Comments: 2