support

package
v1.0.12 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CanNotCreateMapError error = errors.New("can not create map")
View Source
var CanNotFoundValueError = errors.New("can not found value")
View Source
var CanNotInstantiateCallbackWithParameters = errors.New("Can not instantiate callback with parameters")
View Source
var InvalidCollectionKeyError = errors.New("")

Functions

func Kind

func Kind(element interface{}) reflect.Kind

func Name

func Name(element interface{}) string

func WithStack

func WithStack(err error) error

Types

type Collection

type Collection []Value

func NewCollection

func NewCollection(items ...interface{}) Collection

func (Collection) GetE

func (c Collection) GetE(key string) (Value, error)

func (Collection) Push

func (c Collection) Push(item interface{}) Collection

func (Collection) Raw

func (c Collection) Raw() interface{}

type Map

type Map map[string]Value

func NewMapE

func NewMapE(itemsRange ...interface{}) (Map, error)

func (Map) Collection

func (m Map) Collection() Collection

func (Map) GetE

func (m Map) GetE(key string) (Value, error)

func (Map) Merge

func (m Map) Merge(maps ...Map) Map

func (Map) Push

func (m Map) Push(key string, input interface{}) Map

func (Map) Raw

func (m Map) Raw() interface{}

type Value

type Value struct {
	// contains filtered or unexported fields
}

func NewValue

func NewValue(val interface{}, preErr ...error) Value

func (Value) Collection

func (v Value) Collection() Collection

A value can contain a collection.

func (Value) GetE

func (v Value) GetE(key string) (Value, error)

func (Value) Map

func (v Value) Map() Map

func (Value) MapE

func (v Value) MapE() (Map, error)

func (Value) Raw

func (v Value) Raw() interface{}

func (Value) Source

func (v Value) Source() interface{}

Jump to

Keyboard shortcuts

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