Documentation ¶
Index ¶
- func JSONToProtobufMessage(data string, message proto.Message) error
- func ProtobufToJSON(message proto.Message) ([]byte, error)
- func ReadProtobufFromBinaryFile(filename string, message proto.Message) error
- func WriteProtobufToBinaryFile(message proto.Message, filename string) error
- func WriteProtobufToJSONFile(message proto.Message, filename string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func JSONToProtobufMessage ¶
JSONToProtobufMessage converts JSON string to protocol buffer message
func ProtobufToJSON ¶
ProtobufToJSON converts protocol buffer message to JSON string
func ReadProtobufFromBinaryFile ¶
ReadProtobufFromBinaryFile reads protocol buffer message from binary file
func WriteProtobufToBinaryFile ¶
WriteProtobufToBinaryFile writes protocol buffer message to binary file
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.