Documentation ¶
Index ¶
- Variables
- func MarshalBytes(pb proto.Message) ([]byte, error)
- func MarshalBytesEmitZeroValues(pb proto.Message) ([]byte, error)
- func MarshalBytesIndented(pb proto.Message) ([]byte, error)
- func MarshalStruct(m proto.Message) (*structpb.Struct, error)
- func MarshalStructEmitZeroValues(m proto.Message) (*structpb.Struct, error)
- func UnmarshalAllowUnknown(r io.Reader, into proto.Message) error
- func UnmarshalBytes(data []byte, into proto.Message) error
- func UnmarshalBytesAllowUnknown(data []byte, into proto.Message) error
- func UnmarshalYaml(data []byte, into proto.Message) error
Constants ¶
This section is empty.
Variables ¶
View Source
var (
NilStructError = eris.New("cannot unmarshal nil struct")
)
Functions ¶
func MarshalBytesIndented ¶ added in v1.17.0
func MarshalStruct ¶
this function is designed for converting go object (that is not a proto.Message) into a pb Struct, based on json struct tags
func UnmarshalAllowUnknown ¶ added in v1.17.0
func UnmarshalBytesAllowUnknown ¶ added in v1.17.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.