ugorji / go

idiomatic codec and rpc lib for msgpack, cbor, json, etc. msgpack.org[Go]
MIT License
1.86k stars 295 forks source link

Would like to be able to disable extension support in codecgen-generated code #207

Closed bboreham closed 7 years ago

bboreham commented 7 years ago

We don't use the extensions feature, so having it in the code has a couple of downsides:

Therefore I would like an option on codecgen to disable extensions and stop generating this line:

} else if z.HasExtensions() && z.EncExt(x) { 

Happy to do a PR myself.

ugorji commented 7 years ago

I have a few changes in process to codec.

Let me think this through.

ugorji commented 7 years ago

Fixed via 50530d8d1478c8bbfbdb18cbf5465db9aee6ada4