maps

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2024 License: MIT Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetValues added in v0.2.55

func GetValues[Key comparable, Value any](m map[Key]Value) []Value

func GlazedStructToMap added in v0.4.36

func GlazedStructToMap(s interface{}) (map[string]interface{}, error)

GlazedStructToMap converts a struct pointer to a map of parameter names to values. It iterates through the struct fields looking for the "glazed.parameter" tag. For each field with the tag, it will add an entry to the returned map with the tag value as the key and the field's value as the map value. Returns an error if s is not a pointer to a struct.

func IsStructPointer added in v0.4.30

func IsStructPointer(s interface{}) bool

func StructToMap

func StructToMap(i interface{}, lowerCaseKeys bool) map[string]interface{}

Types

This section is empty.

Jump to

Keyboard shortcuts

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