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

Issue 4625081: code review 4625081: json: allow using '$' and '-' as the struct field's tag (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years, 9 months ago by mikio
Modified:
14 years, 8 months ago
Reviewers:
CC:
adg, rsc, bradfitz, mattn, gustavo_niemeyer.net, golang-dev
Visibility:
Public.

Description

json: allow using '$' and '-' as the struct field's tag

Patch Set 1 : diff -r add294e751cb https://go.googlecode.com/hg/ #

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

Total comments: 1

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

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

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

Total comments: 1

Patch Set 6 : diff -r 67b160cd5fa4 https://go.googlecode.com/hg/ #

Total comments: 2

Patch Set 7 : diff -r 6fe6dae00ad1 https://go.googlecode.com/hg/ #

Patch Set 8 : diff -r 57c578e0cff2 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+101 lines, -16 lines) Patch
M src/pkg/json/decode_test.go View 1 2 3 4 5 2 chunks +0 lines, -10 lines 0 comments Download
M src/pkg/json/encode.go View 1 2 3 4 5 6 7 2 chunks +6 lines, -6 lines 0 comments Download
A src/pkg/json/tagkey_test.go View 1 2 3 4 5 6 7 1 chunk +95 lines, -0 lines 0 comments Download

Messages

Total messages: 27
mikio
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
14 years, 9 months ago (2011-06-30 22:27:14 UTC) #1
rsc
I was thinking that now that there's an explicit json: required we might as well ...
14 years, 9 months ago (2011-06-30 22:35:42 UTC) #2
bradfitz
Please add a test. Go makes it too easy. No excuse not to. Failure to ...
14 years, 9 months ago (2011-06-30 22:39:34 UTC) #3
mikio
Hello golang-dev@googlegroups.com, rsc@golang.org, bradfitz@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
14 years, 9 months ago (2011-07-01 03:23:13 UTC) #4
mattn
http://codereview.appspot.com/4625081/diff/11002/src/pkg/json/encode.go File src/pkg/json/encode.go (right): http://codereview.appspot.com/4625081/diff/11002/src/pkg/json/encode.go#newcode324 src/pkg/json/encode.go:324: if unicode.IsLetter(c) || unicode.IsDigit(c) { original code return true ...
14 years, 9 months ago (2011-07-01 03:44:15 UTC) #5
mikio
On Fri, Jul 1, 2011 at 12:44 PM, <mattn.jp@gmail.com> wrote: > original code return true ...
14 years, 9 months ago (2011-07-01 03:47:08 UTC) #6
mikio
Hello golang-dev@googlegroups.com, rsc@golang.org, bradfitz@golang.org, mattn.jp@gmail.com (cc: golang-dev@googlegroups.com), Please take another look.
14 years, 9 months ago (2011-07-01 04:13:03 UTC) #7
mikio
Hello golang-dev@googlegroups.com, rsc@golang.org, bradfitz@golang.org, mattn.jp@gmail.com (cc: golang-dev@googlegroups.com), Please take another look.
14 years, 9 months ago (2011-07-01 04:17:37 UTC) #8
mattn
LGTM test passed. On 2011/07/01 04:17:37, mikioh wrote: > Hello mailto:golang-dev@googlegroups.com, mailto:rsc@golang.org, mailto:bradfitz@golang.org, > mailto:mattn.jp@gmail.com ...
14 years, 9 months ago (2011-07-01 04:20:52 UTC) #9
mikio
Hello golang-dev@googlegroups.com, rsc@golang.org, bradfitz@golang.org, mattn.jp@gmail.com (cc: golang-dev@googlegroups.com), Please take another look.
14 years, 9 months ago (2011-07-01 07:25:27 UTC) #10
rsc
Handing off to adg. http://codereview.appspot.com/4625081/diff/5003/src/pkg/json/encode.go File src/pkg/json/encode.go (right): http://codereview.appspot.com/4625081/diff/5003/src/pkg/json/encode.go#newcode41 src/pkg/json/encode.go:41: // is the struct field ...
14 years, 9 months ago (2011-07-01 14:30:54 UTC) #11
mikio
On Fri, Jul 1, 2011 at 11:30 PM, <rsc@golang.org> wrote: > If the struct field's ...
14 years, 9 months ago (2011-07-02 10:23:28 UTC) #12
mikio
Hello adg@golang.org, rsc@golang.org, bradfitz@golang.org, mattn.jp@gmail.com (cc: golang-dev@googlegroups.com), Please take another look.
14 years, 9 months ago (2011-07-05 03:17:32 UTC) #13
mikio
Ping. On Tue, Jul 5, 2011 at 12:17 PM, <mikioh.mikioh@gmail.com> wrote: > Hello adg@golang.org, rsc@golang.org, ...
14 years, 9 months ago (2011-07-08 00:47:18 UTC) #14
mikio
Ping. On Fri, Jul 8, 2011 at 9:47 AM, Mikio Hara <mikioh.mikioh@gmail.com> wrote: > Ping. ...
14 years, 8 months ago (2011-07-13 02:42:52 UTC) #15
adg
http://codereview.appspot.com/4625081/diff/4004/src/pkg/json/tagkey_test.go File src/pkg/json/tagkey_test.go (right): http://codereview.appspot.com/4625081/diff/4004/src/pkg/json/tagkey_test.go#newcode80 src/pkg/json/tagkey_test.go:80: case " !\"#$%&'()*+,-./", "0123456789:;<=>?", "@ABCDEFGHIJKLMO", "PQRSTUVWXYZ[\\]^_", "`abcdefghijklmno", "pqrstuvwxyz{|}~\x7f", "いろはにほへと": ...
14 years, 8 months ago (2011-07-13 04:52:06 UTC) #16
rsc
Sorry, I have been leaving this to the side while we hammer out what is ...
14 years, 8 months ago (2011-07-13 04:53:36 UTC) #17
mikio
http://codereview.appspot.com/4625081/diff/4004/src/pkg/json/tagkey_test.go File src/pkg/json/tagkey_test.go (right): http://codereview.appspot.com/4625081/diff/4004/src/pkg/json/tagkey_test.go#newcode80 src/pkg/json/tagkey_test.go:80: case " !\"#$%&'()*+,-./", "0123456789:;<=>?", "@ABCDEFGHIJKLMO", "PQRSTUVWXYZ[\\]^_", "`abcdefghijklmno", "pqrstuvwxyz{|}~\x7f", "いろはにほへと": ...
14 years, 8 months ago (2011-07-13 05:56:47 UTC) #18
mikio
Hello adg@golang.org, rsc@golang.org, bradfitz@golang.org, mattn.jp@gmail.com (cc: golang-dev@googlegroups.com), Please take another look.
14 years, 8 months ago (2011-07-13 05:57:09 UTC) #19
rsc
We need a way to give a few options to the json: tag besides the ...
14 years, 8 months ago (2011-07-13 21:24:02 UTC) #20
gustavo_niemeyer.net
> We need a way to give a few options to the json: tag > ...
14 years, 8 months ago (2011-07-13 22:04:47 UTC) #21
bradfitz
On Wed, Jul 13, 2011 at 3:04 PM, Gustavo Niemeyer <gustavo@niemeyer.net>wrote: > > We need ...
14 years, 8 months ago (2011-07-13 22:11:00 UTC) #22
mikio
Yes, what I just want is parsing "media-types" like hyp-t'd tag/key. On Jul 14, 2011, ...
14 years, 8 months ago (2011-07-13 23:11:51 UTC) #23
rsc
Okay. Let's keep the current restrictions as is, then, and just expand the name set ...
14 years, 8 months ago (2011-07-13 23:14:06 UTC) #24
mikio
Hello adg@golang.org, rsc@golang.org, bradfitz@golang.org, mattn.jp@gmail.com, gustavo@niemeyer.net (cc: golang-dev@googlegroups.com), Please take another look.
14 years, 8 months ago (2011-07-14 00:39:32 UTC) #25
rsc
LGTM
14 years, 8 months ago (2011-07-14 00:41:23 UTC) #26
rsc
14 years, 8 months ago (2011-07-14 00:41:36 UTC) #27
*** Submitted as http://code.google.com/p/go/source/detail?r=e09ea45b361e ***

json: allow using '$' and '-' as the struct field's tag

R=adg, rsc, bradfitz, mattn.jp, gustavo
CC=golang-dev
http://codereview.appspot.com/4625081

Committer: Russ Cox <rsc@golang.org>
Sign in to reply to this message.

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