dedis / protobuf

Reflection-based Protocol Buffers for Go
GNU General Public License v2.0
76 stars 15 forks source link

Encode/Decode interfaces from generators #57

Closed Gilthoniel closed 5 years ago

Gilthoniel commented 5 years ago

This changes the way interfaces are decoded and encoded so that the correct type is looked up from a register. That allows to have multiple struct coming from the same interface.

Backward compatibility is kept for the default constructors so it will look for a registered generator first, then a constructor and finally it will try to convert into a raw type for aliases

kc1212 commented 5 years ago

First comment says tests are WIP, are they still?