protoyaml

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package protoyaml marshals and unmarshals protocol buffer messages in YAML format.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Marshal

func Marshal(m proto.Message) ([]byte, error)

Marshal writes the given proto.Message in YAML format.

func Unmarshal

func Unmarshal(b []byte, m proto.Message) error

Unmarshal reads the given []byte into the given proto.Message, discarding any unknown fields in the input.

func UnmarshalStrict

func UnmarshalStrict(b []byte, m proto.Message) error

UnmarshalStrict reads the given []byte into the given proto.Message. If there are any unknown fields in the input, an error is returned.

Types

This section is empty.

Jump to

Keyboard shortcuts

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