-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Open
Labels
generator-proto-optioninvolves generators respecting a proto option to control generated source outputinvolves generators respecting a proto option to control generated source outputproposal
Milestone
Description
If the generated code would include the methods MarshalBinary
and UnmarshalBinary
from Go's stdlib, the corresponding interfaces from the encoding
package would be satisfied. Storage/Transmitting-Code could be unified and a dependency to the protobuf package could be removed. The methods would look like:
func (m *Model) MarshalBinary() ([]byte, error) {
return proto.Marshal(m)
}
func (m *Model) UnmarshalBinary(data []byte) error {
return proto.Unmarshal(data, m)
}
jaimem88, DeadLemon, adam-azarchs, ovandriyanov, umi0410 and 3 more
Metadata
Metadata
Assignees
Labels
generator-proto-optioninvolves generators respecting a proto option to control generated source outputinvolves generators respecting a proto option to control generated source outputproposal