marshal

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2023 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApiModelToPBStruct added in v0.6.2

func ApiModelToPBStruct(obj interface{}) (*structpb.Struct, error)

ApiModelToPBStruct convert an object to a protobuf struct by marshalling and unmarshalling it.

func RemarshalTo

func RemarshalTo(obj interface{}, target interface{}) error

RemarshalTo convert an object to a target object by marshalling and unmarshalling it.

Types

This section is empty.

Jump to

Keyboard shortcuts

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