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

Issue 12513044: code review 12513044: image: Inline example image data to make it runnabl...

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 8 months ago by dtcaciuc
Modified:
10 years, 8 months ago
Reviewers:
CC:
nigeltao, adg, golang-dev
Visibility:
Public.

Description

image: Inline example image data to make it runnable on playground. Use more compressed image to reduce source clutter. Fixes issue 5983.

Patch Set 1 #

Patch Set 2 : diff -r 626c01d29570 https://code.google.com/p/go #

Patch Set 3 : diff -r 626c01d29570 https://code.google.com/p/go #

Total comments: 2

Patch Set 4 : diff -r 626c01d29570 https://code.google.com/p/go #

Patch Set 5 : diff -r 626c01d29570 https://code.google.com/p/go #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+87 lines, -26 lines) Patch
M src/pkg/image/decode_example_test.go View 1 2 3 3 chunks +87 lines, -26 lines 2 comments Download

Messages

Total messages: 6
dtcaciuc
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go
10 years, 8 months ago (2013-08-06 23:28:24 UTC) #1
nigeltao
adg, is this something worth doing? https://codereview.appspot.com/12513044/diff/6001/src/pkg/image/decode_example_test.go File src/pkg/image/decode_example_test.go (right): https://codereview.appspot.com/12513044/diff/6001/src/pkg/image/decode_example_test.go#newcode32 src/pkg/image/decode_example_test.go:32: reader := base64.NewDecoder(base64.StdEncoding, ...
10 years, 8 months ago (2013-08-07 00:47:36 UTC) #2
dtcaciuc
Hello nigeltao@golang.org, adg@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
10 years, 8 months ago (2013-08-07 16:48:35 UTC) #3
nigeltao
adg: ping.
10 years, 8 months ago (2013-08-16 01:14:22 UTC) #4
adg
Looks fine to me https://codereview.appspot.com/12513044/diff/11001/src/pkg/image/decode_example_test.go File src/pkg/image/decode_example_test.go (right): https://codereview.appspot.com/12513044/diff/11001/src/pkg/image/decode_example_test.go#newcode82 src/pkg/image/decode_example_test.go:82: const video001 = ` I'd ...
10 years, 8 months ago (2013-08-16 01:27:41 UTC) #5
nigeltao
10 years, 8 months ago (2013-08-16 01:43:55 UTC) #6
*** Submitted as https://code.google.com/p/go/source/detail?r=7c02aea39eae ***

    image: Inline example image data to make it runnable on playground.

Use more compressed image to reduce source clutter.

Fixes issue 5983.

R=nigeltao, adg
CC=golang-dev
https://codereview.appspot.com/12513044

Committer: Nigel Tao <nigeltao@golang.org>

https://codereview.appspot.com/12513044/diff/11001/src/pkg/image/decode_examp...
File src/pkg/image/decode_example_test.go (right):

https://codereview.appspot.com/12513044/diff/11001/src/pkg/image/decode_examp...
src/pkg/image/decode_example_test.go:82: const video001 = `
On 2013/08/16 01:27:42, adg wrote:
> I'd be inclined to just write
> 
> var reader = base64.NewDecoder(base64.StdEncoding, strings.NewReader(`...`))

Eh, I like it as is, leaving data as data and code as code.
Sign in to reply to this message.

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