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

Issue 4670051: code review 4670051: crypto/openpgp: use new(bytes.Buffer) where possible

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years, 3 months ago by agl1
Modified:
12 years, 3 months ago
Reviewers:
captn, bradfitz
CC:
golang-dev
Visibility:
Public.

Description

crypto/openpgp: use new(bytes.Buffer) where possible

Patch Set 1 #

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

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -16 lines) Patch
M src/pkg/crypto/openpgp/canonical_text_test.go View 1 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/crypto/openpgp/packet/packet_test.go View 1 4 chunks +4 lines, -4 lines 0 comments Download
M src/pkg/crypto/openpgp/packet/private_key.go View 1 1 chunk +2 lines, -2 lines 0 comments Download
M src/pkg/crypto/openpgp/packet/public_key_test.go View 1 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/crypto/openpgp/packet/symmetrically_encrypted_test.go View 1 2 chunks +2 lines, -2 lines 0 comments Download
M src/pkg/crypto/openpgp/write_test.go View 1 6 chunks +6 lines, -6 lines 0 comments Download

Messages

Total messages: 7
agl1
Hello bradfitz@golang.org (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
14 years, 3 months ago (2011-07-08 13:57:06 UTC) #1
bradfitz
LGTM On Fri, Jul 8, 2011 at 6:57 AM, <agl@golang.org> wrote: > Reviewers: bradfitz, > ...
14 years, 3 months ago (2011-07-08 14:54:57 UTC) #2
captn
LGTM gofix? gofmt -s? git grep "NewBuffer(nil)" pkg/asn1/marshal.go: return &forkableWriter{bytes.NewBuffer(nil), nil, nil} pkg/bufio/bufio_test.go: l, _ ...
14 years, 3 months ago (2011-07-09 09:23:14 UTC) #3
rsc
Almost all the buf := bytes.NewBuffer(nil) are better as var buf bytes.Buffer and then pass ...
14 years, 3 months ago (2011-07-11 06:35:55 UTC) #4
captn
Thinking is good. I'd prefer new where it's shorter.
14 years, 3 months ago (2011-07-11 14:44:05 UTC) #5
rsc
openpgp is gone from this repository, thank god
13 years, 4 months ago (2012-06-03 04:52:50 UTC) #6
remyoudompheng
12 years, 3 months ago (2013-07-21 10:13:19 UTC) #7
R=close
Sign in to reply to this message.

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