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

Issue 4410041: code review 4410041: expvar: add ValueFunc for variables that are JSON marsh... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years ago by dsymonds
Modified:
14 years ago
Reviewers:
CC:
rsc, r, r2, golang-dev
Visibility:
Public.

Description

expvar: add Func for functions that return values that are JSON marshalable. Remove {Float,Int,String}Func, which are now redundant. Fixes issue 1684.

Patch Set 1 #

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

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

Total comments: 2

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

Total comments: 1

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

Total comments: 1

Patch Set 6 : diff -r 168cd63b4d17 https://go.googlecode.com/hg/ #

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -58 lines) Patch
M src/pkg/expvar/expvar.go View 1 2 3 4 5 2 chunks +13 lines, -24 lines 0 comments Download
M src/pkg/expvar/expvar_test.go View 1 2 3 4 5 1 chunk +8 lines, -34 lines 0 comments Download

Messages

Total messages: 14
dsymonds
Hello rsc@golang.org (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
14 years ago (2011-04-13 06:27:54 UTC) #1
r
http://codereview.appspot.com/4410041/diff/3001/src/pkg/expvar/expvar.go File src/pkg/expvar/expvar.go (right): http://codereview.appspot.com/4410041/diff/3001/src/pkg/expvar/expvar.go#newcode201 src/pkg/expvar/expvar.go:201: // ValueFunc wraps a func() interface{} that returns a ...
14 years ago (2011-04-13 20:43:16 UTC) #2
rsc
http://codereview.appspot.com/4410041/diff/3001/src/pkg/expvar/expvar.go File src/pkg/expvar/expvar.go (right): http://codereview.appspot.com/4410041/diff/3001/src/pkg/expvar/expvar.go#newcode201 src/pkg/expvar/expvar.go:201: // ValueFunc wraps a func() interface{} that returns a ...
14 years ago (2011-04-13 20:50:20 UTC) #3
dsymonds
Func works for me, except that we'd be painted into a corner if we later ...
14 years ago (2011-04-13 23:19:41 UTC) #4
r2
On Apr 13, 2011, at 4:19 PM, David Symonds wrote: > Func works for me, ...
14 years ago (2011-04-13 23:21:20 UTC) #5
dsymonds
PTAL
14 years ago (2011-04-14 00:01:59 UTC) #6
r
http://codereview.appspot.com/4410041/diff/10001/src/pkg/expvar/expvar.go File src/pkg/expvar/expvar.go (right): http://codereview.appspot.com/4410041/diff/10001/src/pkg/expvar/expvar.go#newcode208 src/pkg/expvar/expvar.go:208: } i'm not happy with the name. sorry. the ...
14 years ago (2011-04-14 00:07:33 UTC) #7
dsymonds
I've left the comment on the type, since that's where all the other ones are. ...
14 years ago (2011-04-15 02:09:06 UTC) #8
r
LGTM but let rsc agree - he wasn't happy before http://codereview.appspot.com/4410041/diff/13001/src/pkg/expvar/expvar.go File src/pkg/expvar/expvar.go (right): http://codereview.appspot.com/4410041/diff/13001/src/pkg/expvar/expvar.go#newcode201 ...
14 years ago (2011-04-15 02:58:11 UTC) #9
rsc
This still doesn't seem right. I propose deleting all the Funcs and having only // ...
14 years ago (2011-04-15 03:28:07 UTC) #10
r2
On Apr 14, 2011, at 8:28 PM, Russ Cox wrote: > This still doesn't seem ...
14 years ago (2011-04-15 03:32:53 UTC) #11
dsymonds
PTAL
14 years ago (2011-04-15 04:00:27 UTC) #12
rsc
LGTM
14 years ago (2011-04-15 04:13:02 UTC) #13
dsymonds
14 years ago (2011-04-15 08:21:33 UTC) #14
*** Submitted as http://code.google.com/p/go/source/detail?r=478e59aa1682 ***

expvar: add Func for functions that return values that are JSON marshalable.

Remove {Float,Int,String}Func, which are now redundant.

Fixes issue 1684.

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

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