maps

package module
v0.0.0-...-daf3629 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const ARRAY_SEPARATOR = ":"
View Source
const MAP_SEPARATOR = "."

Variables

This section is empty.

Functions

func AppendChildMap

func AppendChildMap(parentMap *map[string]interface{}, child string, childMap map[string]interface{})

func ConvertFromMap

func ConvertFromMap(a interface{}, data *map[string]interface{})

func ConvertToMap

func ConvertToMap(a interface{}) map[string]interface{}

func FieldExists

func FieldExists(info interface{}, fieldname string) bool

func GetChildSubmap

func GetChildSubmap(parentMap *map[string]interface{}, child string, separator string) map[string]interface{}

func GetFieldString

func GetFieldString(info interface{}, fieldname string) (string, bool)

func GetFieldUUID

func GetFieldUUID(info interface{}, fieldname string) (uuid.UUID, bool)

func GetMapFieldUUID

func GetMapFieldUUID(data *map[string]interface{}, fieldname string) (uuid.UUID, bool)

func GetSizeSubmap

func GetSizeSubmap(parentMap *map[string]interface{}, separator string) int

func InitializeStruct

func InitializeStruct(t reflect.Type, v reflect.Value)

func SetFieldUUID

func SetFieldUUID(info interface{}, id uuid.UUID, fieldname string) bool

func UnionMaps

func UnionMaps(srcMap *map[string]interface{}, newMap *map[string]interface{})

func ValueToString

func ValueToString(info interface{}) (string, bool)

Types

This section is empty.

Jump to

Keyboard shortcuts

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