Documentation ¶
Overview ¶
Package protoutils are a collection of util methods for using proto
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InterfaceToMap ¶
InterfaceToMap attempts to coerce an interface into a form acceptable by structpb.NewStruct. Expects a struct or a map-like object.
func StructToStructPb ¶
StructToStructPb converts an arbitrary Go struct to a *structpb.Struct. Only exported fields are included in the returned proto.
func StructToStructPbIgnoreOmitEmpty ¶ added in v0.1.46
StructToStructPbIgnoreOmitEmpty converts an arbitrary Go struct to a *structpb.Struct. Only exported fields are included in the returned proto and any omitempty tag is ignored.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.