ref

package module
v0.0.0-...-369c7b4 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2021 License: MIT Imports: 7 Imported by: 1

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 GetType

func GetType(myvar interface{}) string

func InitializeStruct

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

func RunMethodIfExists

func RunMethodIfExists(any interface{}, nameFunc string, args ...interface{}) ([]reflect.Value, bool)

func SetFieldUUID

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

func UnionMaps

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

func UnionMapsLK

func UnionMapsLK(dstMap *map[string]interface{}, srcMap *map[string]interface{})

func UnionMapsStr

func UnionMapsStr(dstMap *map[string]interface{}, srcMap *map[string]string)

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