data

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: Apache-2.0 Imports: 1 Imported by: 44

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 MergeMapsConcatSlice added in v0.8.1

func MergeMapsConcatSlice(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 Convert added in v0.8.1

func Convert(obj interface{}) (Object, error)

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