maputil

package
v0.208.0 Latest Latest
Warning

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

Go to latest
Published: May 3, 2022 License: Apache-2.0 Imports: 0 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasElement added in v0.177.0

func HasElement(m map[string]interface{}, k ...string) bool

HasElement returns true if nested element k exists.

func ReadEmbeddedMap

func ReadEmbeddedMap(m map[string]interface{}, k string) (map[string]interface{}, bool)

ReadEmbeddedMap reads element k from the map m as a map[string]interface{}.

func ReadEmbeddedSlice

func ReadEmbeddedSlice(m map[string]interface{}, k string) ([]interface{}, bool)

ReadEmbeddedSlice reads element k from the map m as a []interface{}.

func ReadEmbeddedString added in v0.172.0

func ReadEmbeddedString(m map[string]interface{}, k string) (string, bool)

ReadEmbeddedString reads element k from the map m as a string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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