util

package
v0.0.0-...-9c44629 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StructProto

func StructProto(v map[string]interface{}) *structpb.Struct

func StructToMap

func StructToMap(s *structpb.Struct) map[string]interface{}

DecodeToMap converts a pb.Struct to a map from strings to Go types. DecodeToMap panics if s is invalid.

func StructToMapWithPrefix

func StructToMapWithPrefix(s *structpb.Struct) map[string]interface{}

func ValueProto

func ValueProto(v interface{}) *structpb.Value

ValueProto converts an interface{} to a ptypes.Value

Types

This section is empty.

Jump to

Keyboard shortcuts

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