serializer

package
v0.0.0-...-76b32bc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 29, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package serializer serializes laptop object

Package serializer serializes laptop object

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProtobufToJSON

func ProtobufToJSON(message proto.Message) (string, error)

ProtobufToJSON converts protocol buffer message to json string

func ReadProtobufFromBinaryFile

func ReadProtobufFromBinaryFile(filename string, message proto.Message) error

ReadProtobufFromBinaryFile reads protocol buffer message from binary file

func WriteProtobufToBinaryFile

func WriteProtobufToBinaryFile(message proto.Message, filename string) error

WriteProtobufToBinaryFile writes protocol buffer message to binary file

func WriteProtobufToJSONFile

func WriteProtobufToJSONFile(message proto.Message, filename string) error

WriteProtobufToJSONFile writes protocol buffer message to json file

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL