data

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2020 License: Apache-2.0 Imports: 1 Imported by: 42

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetValue

func GetValue(data map[string]interface{}, keys ...string) (interface{}, bool)

func GetValueN

func GetValueN(data map[string]interface{}, keys ...string) interface{}

func MergeMaps added in v0.6.0

func MergeMaps(base, overlay map[string]interface{}) map[string]interface{}

func PutValue

func PutValue(data map[string]interface{}, val interface{}, keys ...string)

func RemoveValue

func RemoveValue(data map[string]interface{}, keys ...string) (interface{}, bool)

Types

type List

type List []map[string]interface{}

type Object

type Object map[string]interface{}

func New

func New() Object

func (Object) Bool

func (o Object) Bool(key ...string) bool

func (Object) Map

func (o Object) Map(names ...string) Object

func (Object) Set

func (o Object) Set(key string, obj interface{})

func (Object) SetNested

func (o Object) SetNested(obj interface{}, key ...string)

func (Object) Slice

func (o Object) Slice(names ...string) (result []Object)

func (Object) String

func (o Object) String(names ...string) string

func (Object) StringSlice

func (o Object) StringSlice(names ...string) []string

func (Object) Values

func (o Object) Values() (result []Object)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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