jmattheis / goverter

Generate type-safe Go converters by simply defining an interface
https://goverter.jmattheis.de/
MIT License
496 stars 46 forks source link

Add goverter:mapExtend #13

Closed soniah closed 2 years ago

soniah commented 2 years ago

Hi Jannis, here's a start - parsing. Comments?

I think the name mapExtend is fine, as Extend lines up with the "external" // goverter:extend, and it's a mapping. You could call it mapFunction but then you've got Extend verses Function.

Also I added in a feature for limiting the tests that are run, I could remove this later if you don't like it. I'd remove the spew module before release.

leedsalex commented 2 years ago

@soniah @jmattheis Any update on this PR, I could really use this feature.

soniah commented 2 years ago

No. I lost everything in the recent floods in Australia, I've been worried about things like food, clothes and shelter 😢

https://www.theguardian.com/australia-news/video/2022/mar/31/nsw-floods-drone-footage-shows-scale-of-devastation-in-lismore-video

On Fri, 13 May 2022 at 22:39, Alex Leeds @.***> wrote:

@soniah https://github.com/soniah @jmattheis https://github.com/jmattheis Any update on this PR, I could really use this feature.

— Reply to this email directly, view it on GitHub https://github.com/jmattheis/goverter/pull/13#issuecomment-1126013149, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAANWJTHNI6UOX2EATRYQCDVJZEP7ANCNFSM5L2HYDBQ . You are receiving this because you were mentioned.Message ID: @.***>

waltcow commented 2 years ago

@soniah @jmattheis Any update on this PR, I could really use this feature.

https://github.com/waltcow/goverter/tree/feat_map_extend