Reputation: 31
as specified here https://developers.google.com/protocol-buffers/docs/proto3#scalar
protobuf use byte[] for bytes in golang but use string/ByteString for bytes in other language, why the difference ?
as explained by @Volker , string is not suitalbe to hold arbitrary []byte.
then why pb is using string/ByteString for bytes in all other language except go ?
Upvotes: 1
Views: 1483
Reputation: 42431
Upvotes: 1