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 ...
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 ...
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, 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 14 years ago by bradfitz
Modified 14 years ago
Reviewers: bradfitzgoog
Base URL:
Comments: 2