data

package
v0.11.0-rc.1 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: 1 Imported by: 0

Documentation

Overview

Package data contains functions for working with unstructured values like []interface or map[string]interface{}. It allows reading/writing to these values without having to convert to structured items.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetValueN

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

Types

type List

type List []map[string]interface{}

type Object

type Object map[string]interface{}

func (Object) Bool

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

func (Object) Map

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

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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