vburenin / ifacemaker

Generate interfaces from structure methods.
Apache License 2.0
320 stars 43 forks source link

Add ability to exclude and include methods #40

Open efirs opened 4 years ago

efirs commented 4 years ago

It would be useful to allow to exclude some methods of the original struct from generated interface or have only explicitly specified methods be included in the the interface.

vburenin commented 4 years ago

I am not sure you want to include something specifically as at that point generation of interfaces makes little to no sense. However, excluding something maybe reasonable for some cases. Feel free to contribute this change, it should be relatively trivial.

kazhuravlev commented 1 year ago

@efirs check this mr #58

risicle commented 1 year ago

Including methods is still worthwhile especially when the methods have long and verbose call signatures.