ugorji / go

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

Skip type aliases #371

Closed mxmauro closed 1 year ago

mxmauro commented 2 years ago

Hi, when you define type A = B, A becomes an alias of B.

Instead, using type A B, B is an underlying object of A.

For the former, the generator incorrectly generates duplicated selfer methods causing the go code to be invalid.

Regards, Mauro