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

Issue 86730043: code review 86730043: expvar: fix map key output (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 1 month ago by ruiu
Modified:
10 years, 1 month ago
Reviewers:
bradfitz
CC:
golang-codereviews, bradfitz
Visibility:
Public.

Description

expvar: fix map key output To create a valid JSON string, "%s" is not enough. Fixes issue 7761.

Patch Set 1 #

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

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -4 lines) Patch
M src/pkg/expvar/expvar.go View 1 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/expvar/expvar_test.go View 1 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 5
ruiu
Hello golang-codereviews@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go
10 years, 1 month ago (2014-04-11 03:48:29 UTC) #1
bradfitz
I don't think %q is quite right for JSON either, though.
10 years, 1 month ago (2014-04-11 04:03:59 UTC) #2
ruiu
Maybe, but it's what this package is currently doing to quote a string. Look at ...
10 years, 1 month ago (2014-04-11 04:07:09 UTC) #3
bradfitz
LGTM Okay, good enough. Maybe later this package should depend on json and use it ...
10 years, 1 month ago (2014-04-11 04:13:28 UTC) #4
bradfitz
10 years, 1 month ago (2014-04-11 04:14:09 UTC) #5
*** Submitted as https://code.google.com/p/go/source/detail?r=ec9c977359c1 ***

expvar: fix map key output

To create a valid JSON string, "%s" is not enough.
Fixes issue 7761.

LGTM=bradfitz
R=golang-codereviews, bradfitz
CC=golang-codereviews
https://codereview.appspot.com/86730043

Committer: Brad Fitzpatrick <bradfitz@golang.org>
Sign in to reply to this message.

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