map_util

package
v0.0.0-...-aa45adf Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exists

func Exists(m map[string]interface{}, path string) bool

func GetValue

func GetValue(m map[string]interface{}, path string) interface{}

func GetValueAsBool

func GetValueAsBool(m map[string]interface{}, path string, defaultValue bool) bool

func GetValueAsFloat64

func GetValueAsFloat64(m map[string]interface{}, path string, defaultValue float64) float64

func GetValueAsInt

func GetValueAsInt(m map[string]interface{}, path string, defaultValue int) int

func GetValueAsInt32

func GetValueAsInt32(m map[string]interface{}, path string, defaultValue int32) int32

func GetValueAsInt64

func GetValueAsInt64(m map[string]interface{}, path string, defaultValue int64) int64

func GetValueAsMap

func GetValueAsMap(m map[string]interface{}, path string, defaultValue map[string]interface{}) map[string]interface{}

func GetValueAsMapSlice

func GetValueAsMapSlice(m map[string]interface{}, path string) []map[string]interface{}

func GetValueAsString

func GetValueAsString(m map[string]interface{}, path string, defaultValue string) string

func GetValueAsStringSlice

func GetValueAsStringSlice(m map[string]interface{}, path string, defaultValue []string) []string

func MergeMaps

func MergeMaps(maps ...map[string]any) map[string]any

func SetValue

func SetValue(m map[string]interface{}, path string, val interface{})

Types

This section is empty.

Jump to

Keyboard shortcuts

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