utils

package
v0.0.0-...-6a40476 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyProto

func CopyProto(src, dest proto.Message) error

CopyProto 由于proto的struct复制会有问题,所以只能转换成pb再转回来

func ModelToProtoStruct

func ModelToProtoStruct(m interface{}) (*structpb.Value, error)

func ProtoStructToModel

func ProtoStructToModel(p *structpb.Struct, m interface{}) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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