Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1821)

Issue 4426066: code review 4426066: ioutil: add Discard, update tree. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 12 months ago by bradfitz
Modified:
12 years, 12 months ago
Reviewers:
bradfitzgoog
CC:
r, rsc1, r2, adg, golang-dev
Visibility:
Public.

Description

ioutil: add Discard, update tree. This also removes an unnecessary allocation in http/transfer.go

Patch Set 1 #

Patch Set 2 : diff -r 22fa8d29da35 https://go.googlecode.com/hg #

Patch Set 3 : diff -r 22fa8d29da35 https://go.googlecode.com/hg #

Total comments: 2

Patch Set 4 : diff -r e22eac26c2b9 https://go.googlecode.com/hg #

Patch Set 5 : diff -r e22eac26c2b9 https://go.googlecode.com/hg #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -33 lines) Patch
M src/pkg/compress/lzw/reader_test.go View 1 2 3 2 chunks +1 line, -7 lines 0 comments Download
M src/pkg/compress/lzw/writer_test.go View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/html/parse_test.go View 1 2 3 2 chunks +1 line, -7 lines 0 comments Download
M src/pkg/http/transfer.go View 1 2 3 2 chunks +3 lines, -9 lines 0 comments Download
M src/pkg/io/ioutil/ioutil.go View 1 2 3 1 chunk +10 lines, -0 lines 0 comments Download
M src/pkg/mime/multipart/multipart.go View 1 2 3 3 chunks +2 lines, -9 lines 0 comments Download

Messages

Total messages: 10
bradfitz
Hello r (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg
12 years, 12 months ago (2011-04-27 21:46:47 UTC) #1
r
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
bradfitz
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
rsc1
fmt.Fprintf(ioutil.Discard, "hello world") looks good to me
12 years, 12 months ago (2011-04-27 22:29:12 UTC) #4
r2
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
bradfitz
Hello r, rsc1, r2 (cc: golang-dev@googlegroups.com), Please take another look.
12 years, 12 months ago (2011-04-27 22:42:08 UTC) #6
r
LGTM nice
12 years, 12 months ago (2011-04-27 22:42:55 UTC) #7
adg
See also ignoreWriter in archive/tar/reader.go On 28 April 2011 08:42, <r@golang.org> wrote: > LGTM > ...
12 years, 12 months ago (2011-04-27 22:45:55 UTC) #8
bradfitz
*** Submitted as http://code.google.com/p/go/source/detail?r=cb593b108aa5 *** ioutil: add Discard, update tree. This also removes an unnecessary ...
12 years, 12 months ago (2011-04-27 22:47:07 UTC) #9
bradfitzgoog
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/
> >
>
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b