proto

package
v1.4.0-pre-alpha-2 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package proto provides conversion functions to protobuf format.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BufferToProto

func BufferToProto(buf *bytes.Buffer, message proto.Message, format string) error

BufferToProto tries to unmarshal a json|yaml bytes buffer to a proto message.

func InputFileToProto

func InputFileToProto(filePath string, outResource proto.Message) error

InputFileToProto reads a json/yaml input file and converts it to protobuf format

Types

This section is empty.

Jump to

Keyboard shortcuts

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