maputil

package
v3.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasElement

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

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