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

Issue 10366044: Add support for ,inline flag with struct values.

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 10 months ago by niemeyer
Modified:
10 years, 10 months ago
Reviewers:
mp+169981, rog
Visibility:
Public.

Description

Add support for ,inline flag with struct values. This also adds the code to do inlining of maps, as supported by bson (the code was copied from mgo/bson), but it's disabled for the moment as I'll need more time to implement it. https://code.launchpad.net/~niemeyer/goyaml/inline-struct/+merge/169981 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 12

Patch Set 2 : Add support for ,inline flag with struct values. #

Patch Set 3 : Add support for ,inline flag with struct values. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+138 lines, -62 lines) Patch
A [revision details] View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M decode.go View 1 1 chunk +9 lines, -4 lines 0 comments Download
M decode_test.go View 1 2 1 chunk +18 lines, -0 lines 0 comments Download
M encode.go View 1 1 chunk +8 lines, -3 lines 0 comments Download
M encode_test.go View 1 2 chunks +28 lines, -11 lines 0 comments Download
M goyaml.go View 1 2 12 chunks +73 lines, -44 lines 0 comments Download

Messages

Total messages: 6
niemeyer
Please take a look.
10 years, 10 months ago (2013-06-18 03:47:03 UTC) #1
jameinel
The encode side of code looks reasonable, but what happens on decode if you have ...
10 years, 10 months ago (2013-06-19 04:47:34 UTC) #2
niemeyer
On 2013/06/19 04:47:34, jameinel wrote: > The encode side of code looks reasonable, but what ...
10 years, 10 months ago (2013-06-19 14:12:56 UTC) #3
rog
LGTM with some more tests and some other thoughts. https://codereview.appspot.com/10366044/diff/1/encode.go File encode.go (right): https://codereview.appspot.com/10366044/diff/1/encode.go#newcode122 encode.go:122: ...
10 years, 10 months ago (2013-06-19 15:11:12 UTC) #4
niemeyer
Thanks for the review, Roger. https://codereview.appspot.com/10366044/diff/1/encode.go File encode.go (right): https://codereview.appspot.com/10366044/diff/1/encode.go#newcode122 encode.go:122: value = in.FieldByIndex(info.Inline) On ...
10 years, 10 months ago (2013-06-19 17:53:16 UTC) #5
niemeyer
10 years, 10 months ago (2013-06-19 18:06:45 UTC) #6
*** Submitted:

Add support for ,inline flag with struct values.

This also adds the code to do inlining of maps, as supported by bson
(the code was copied from mgo/bson), but it's disabled for the moment
as I'll need more time to implement it.

R=jameinel, rog
CC=
https://codereview.appspot.com/10366044
Sign in to reply to this message.

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