map_util

package
v0.0.0-...-5bb0c7b Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2021 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 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 SetValue

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

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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