protoyaml

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2026 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Marshal

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

func Unmarshal

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

func UnmarshalJSON added in v0.1.5

func UnmarshalJSON(j []byte, result proto.Message) error

UnmarshalJSON unmarshals JSON bytes into a protobuf message with this package's decode options.

func YAMLToJSON added in v0.1.5

func YAMLToJSON(y []byte) ([]byte, error)

YAMLToJSON converts YAML bytes into JSON bytes for protojson.Unmarshal.

Types

This section is empty.

Jump to

Keyboard shortcuts

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