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

Issue 4602063: code review 4602063: mime/multipart: convert Reader from interface to struct (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 8 months ago by bradfitz
Modified:
13 years, 8 months ago
Reviewers:
CC:
golang-dev, r, rsc
Visibility:
Public.

Description

mime/multipart: convert Reader from interface to struct It was always a weird interface but I didn't know what I was doing at the time. rsc questioned me about it then but didn't press on it during review. Then adg bugged me about it too recently. So clean it up. It parallels the Writer struct too.

Patch Set 1 #

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

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

Total comments: 1

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -28 lines) Patch
M src/pkg/http/request.go View 1 2 chunks +2 lines, -2 lines 0 comments Download
M src/pkg/mime/multipart/formdata.go View 1 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/mime/multipart/multipart.go View 1 7 chunks +12 lines, -24 lines 0 comments Download
M src/pkg/mime/multipart/multipart_test.go View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 6
bradfitz
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
13 years, 8 months ago (2011-06-14 23:18:04 UTC) #1
r
http://codereview.appspot.com/4602063/diff/3005/src/pkg/mime/multipart/multipart.go File src/pkg/mime/multipart/multipart.go (right): http://codereview.appspot.com/4602063/diff/3005/src/pkg/mime/multipart/multipart.go#newcode177 src/pkg/mime/multipart/multipart.go:177: type Reader struct { it feels slightly off to ...
13 years, 8 months ago (2011-06-14 23:59:43 UTC) #2
bradfitz
On Tue, Jun 14, 2011 at 4:59 PM, <r@golang.org> wrote: > > http://codereview.appspot.com/**4602063/diff/3005/src/pkg/** > mime/multipart/multipart.go<http://codereview.appspot.com/4602063/diff/3005/src/pkg/mime/multipart/multipart.go> ...
13 years, 8 months ago (2011-06-15 00:13:35 UTC) #3
r
i was just asking. LGTM
13 years, 8 months ago (2011-06-15 00:14:26 UTC) #4
rsc
LGTM
13 years, 8 months ago (2011-06-15 00:55:51 UTC) #5
bradfitz
13 years, 8 months ago (2011-06-16 15:56:03 UTC) #6
*** Submitted as http://code.google.com/p/go/source/detail?r=76cd8f767f5e ***

mime/multipart: convert Reader from interface to struct

It was always a weird interface but I didn't know what I
was doing at the time.  rsc questioned me about it then
but didn't press on it during review.  Then adg bugged me
about it too recently.

So clean it up. It parallels the Writer struct too.

R=golang-dev, r, rsc
CC=golang-dev
http://codereview.appspot.com/4602063
Sign in to reply to this message.

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