dedis / protobuf

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

Slice of Slices & Slice in values #32

Closed nikkolasg closed 7 years ago

nikkolasg commented 7 years ago

This PR is a correction to https://github.com/dedis/protobuf/pull/31. It forbids to use a [][]TYPE when TYPE != byte as a field. It forbids to use a []TYPE for keys. One can still use string or []byte because it's equivalent to bytes in protobuf types. It forbids to use a []TYPE or map[Key]Value in the value of a map.

ineiti commented 7 years ago

Looks very nice - checking if all tests in cothority still pass...

ineiti commented 7 years ago

RandHound fails - I'll make a PR for RandHound, then we can merge this.