Documentation
¶
Index ¶
Constants ¶
View Source
const ( Unknown = Type(iota) Array = Type(iota) Real = Type(iota) Integer = Type(iota) Boolean = Type(iota) Text = Type(iota) ValueType = Type(iota) )
Types supported
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Value ¶
type Value interface {
Type() Type
Array() []Value
Real() float64
Integer() int64
Bool() bool
Text() string
Unknown() interface{}
}
Value represents any type of value, this is used to pass around variadic sized arrays or values not known until runtime
func WrapBoolean ¶
WrapBoolean takes a boolean and returns a value
func WrapInteger ¶
WrapInteger takes an integer and returns a value
func WrapUnknown ¶
func WrapUnknown(value interface{}) Value
WrapUnknown takes an interface and returns a value
Click to show internal directories.
Click to hide internal directories.