variable

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collection

type Collection interface {
	Has(name string) bool
	Get(name string) Variable
	Set(name string, value interface{})
	AsMap() map[string]interface{}
	MergeIn(Collection)
}

func NewCollection

func NewCollection(data map[string]interface{}) Collection

type List

type List []interface{}

func (List) All

func (l List) All() []Variable

func (List) Len

func (l List) Len() int

type Variable

type Variable interface {
	AsString() string
	AsInteger() int
	AsFloat64() float64
	AsBool() bool
	AsCollection() Collection
	AsList() List
	Interface() interface{}
}

func New

func New(raw interface{}) Variable

Jump to

Keyboard shortcuts

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