dedis / protobuf

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

Marshalize structs #48

Closed aounleonardo closed 6 years ago

aounleonardo commented 6 years ago

Closes #5

Added two methods, one in encode and one in decode to check if a struct implements the interfaces BinaryMarshaler and BinaryUnmarshaler.

Inside the encoding and decoding methods, apply the function to the structs that implement it.

ineiti commented 6 years ago

LGTM - can you try what happens if you do go test ./... in the cothority using this branch?

aounleonardo commented 6 years ago

image

ineiti commented 6 years ago

@kc1212 or @jeffallen - merge this if you think it's OK.