Skip to content

Conversation

smarterclayton
Copy link
Contributor

Respects the casttype extension for maps in Go.

Fixes #116

@smarterclayton
Copy link
Contributor Author

Getter generation is still broken here.

@awalterschulze
Copy link
Member

Aha so instead of castkey and castvalue rather casttype the whole maptype. That works for me.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would prefer not factoring it out into a function, since I have to merge in future changes from golang/protobuf. For that reason I try to keep the diff as small as possible.
generator.go is typically the hardest to maintain, since the diff is already so large, but every little bit helps.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hrm - I'm about to push the castkey and castvalue change which builds on that - it was harder there to get the appropriate info (need a fair amount of calculation for maps) and so I have an even larger method. Can you comment on an alternative structure there so I can get an idea what is easier to maintain for you?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please see #120 and smarterclayton@e47b2f8#diff-c5ab46099bd055be2629de524005c350R1762 and let me know what is going to be easier to maintain. Should I create a new file that offers this type and leave the old factoring?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I answered this in the other pull request

@awalterschulze
Copy link
Member

exciting :)

@awalterschulze
Copy link
Member

I think everything is in the other pull request, so I am going to close this one.
Reopen it if I am mistaken.

@awalterschulze
Copy link
Member

@smarterclayton Would you mind if I add kubernetes to list of gogoprotobuf users?

@smarterclayton
Copy link
Contributor Author

Please do

On Tue, Dec 15, 2015 at 3:56 AM, Walter Schulze [email protected]
wrote:

@smarterclayton https://github.com/smarterclayton Would you mind if I
add kubernetes to list of gogoprotobuf users?


Reply to this email directly or view it on GitHub
#119 (comment).

@smarterclayton
Copy link
Contributor Author

The go2idl generator is almost complete - will write something up on how it
is used and send it over so you can give it a try (it's not yet split into
a separate repo, but someone can try and consume it if they are brave in
the near term).

On Fri, Jan 8, 2016 at 5:10 PM, Clayton Coleman [email protected] wrote:

Please do

On Tue, Dec 15, 2015 at 3:56 AM, Walter Schulze [email protected]
wrote:

@smarterclayton https://github.com/smarterclayton Would you mind if I
add kubernetes to list of gogoprotobuf users?


Reply to this email directly or view it on GitHub
#119 (comment).

@awalterschulze
Copy link
Member

Thank you very much :) Kubernetes added http://gogo.github.io/

I am really excited about go2idl :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants