protobuf

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewStruct

func NewStruct(value any) (*structpb.Struct, error)

A more flexible version of structpb.NewStruct that accepts structs, automatically converts number types, and supports variable slice and map types.

func ToCompatibleStringMap

func ToCompatibleStringMap(value any) (map[string]any, error)

func ToCompatibleValue

func ToCompatibleValue(value any) (any, error)

func UnpackReflectValue

func UnpackReflectValue(value any, field reflect.Value) error

func UnpackStringMap

func UnpackStringMap(value any, ptrToStruct any) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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