Documentation ¶
Index ¶
- Constants
- func IsEmpty(o Object) bool
- func IsEqual(l Object, r Object) bool
- func IsNull(o Object) bool
- func ToNativeBool(o Object) bool
- func ToNativeFloat64(o Object) float64
- func ToNativeInt64(o Object) int64
- func ToNativeString(o Object) string
- type Array
- type Boolean
- type Float
- type HashKey
- type Hashable
- type Integer
- type Null
- type Object
- type String
- type Type
Constants ¶
View Source
const ( NULL = "NULL" ARRAY = "ARRAY" INTEGER = "INTEGER" FLOAT = "FLOAT" BOOLEAN = "BOOLEAN" STRING = "STRING" BUILTIN = "BUILTIN" )
Variables ¶
This section is empty.
Functions ¶
func ToNativeBool ¶
ToNativeBool convert object to native bool value
func ToNativeFloat64 ¶
ToNativeFloat64 convert object to native float64 value
func ToNativeInt64 ¶
ToNativeInt64 convert object to native int64 value
func ToNativeString ¶
ToNativeString convert object to native string value
Types ¶
type Array ¶
type Array struct {
Elements []Object
}
Array Array builtin type
type Boolean ¶
type Boolean struct {
Value bool
}
Boolean Boolean builtin type
type Float ¶
type Float struct {
Value float64
}
Float float builtin type
type Integer ¶
type Integer struct {
Value int64
}
Integer Integer builtin type
type Object ¶
Object base type
func NativeToObject ¶
func NativeToObject(v interface{}) Object
NativeToObject convert native interface to Object
func ToNativeArray ¶
ToNativeArray convert object to native Object slice
Click to show internal directories.
Click to hide internal directories.