Documentation
¶
Index ¶
- func NewStaticString(v string) core.Value
- type Array
- func (o *Array) Access(vm core.VM, index core.Value, mode core.Opcode) (core.Value, error)
- func (o *Array) Append(vals ...core.Value)
- func (o *Array) AsBool() (bool, bool)
- func (o *Array) AsBytes() ([]byte, bool)
- func (o *Array) AsString() (string, bool)
- func (o *Array) Assign(index, value core.Value) (err error)
- func (o *Array) At(i int) core.Value
- func (o *Array) BinaryOp(vm core.VM, op token.Token, rhs core.Value) (core.Value, error)
- func (o *Array) Copy(alloc core.Allocator) core.Value
- func (o *Array) Equals(x core.Value) bool
- func (o *Array) GobDecode(b []byte) error
- func (o *Array) GobEncode() ([]byte, error)
- func (o *Array) Interface() any
- func (o *Array) IsArray() bool
- func (o *Array) IsEmpty() bool
- func (o *Array) IsFalse() bool
- func (o *Array) IsImmutable() bool
- func (o *Array) IsIterable() bool
- func (o *Array) IsTrue() bool
- func (o *Array) Iterate(alloc core.Allocator) core.Iterator
- func (o *Array) Len() int
- func (o *Array) Method(vm core.VM, name string, args []core.Value) (core.Value, error)
- func (o *Array) Set(val []core.Value, immutable bool)
- func (o *Array) SetAt(i int, val core.Value)
- func (o *Array) Slice(s, e int) []core.Value
- func (o *Array) String() string
- func (o *Array) TypeName() string
- func (o *Array) Value() []core.Value
- type Bytes
- func (o *Bytes) Access(vm core.VM, index core.Value, mode core.Opcode) (core.Value, error)
- func (o *Bytes) Append(v []byte)
- func (o *Bytes) AsBool() (bool, bool)
- func (o *Bytes) AsBytes() ([]byte, bool)
- func (o *Bytes) AsString() (string, bool)
- func (o *Bytes) Assign(core.Value, core.Value) error
- func (o *Bytes) At(i int) byte
- func (o *Bytes) BinaryOp(vm core.VM, op token.Token, rhs core.Value) (core.Value, error)
- func (o *Bytes) Clear()
- func (o *Bytes) Copy(alloc core.Allocator) core.Value
- func (o *Bytes) Equals(x core.Value) bool
- func (o *Bytes) GobDecode(b []byte) error
- func (o *Bytes) GobEncode() ([]byte, error)
- func (o *Bytes) Interface() any
- func (o *Bytes) IsBytes() bool
- func (o *Bytes) IsEmpty() bool
- func (o *Bytes) IsFalse() bool
- func (o *Bytes) IsIterable() bool
- func (o *Bytes) IsTrue() bool
- func (o *Bytes) Iterate(alloc core.Allocator) core.Iterator
- func (o *Bytes) Len() int
- func (o *Bytes) Method(vm core.VM, name string, args []core.Value) (core.Value, error)
- func (o *Bytes) Set(v []byte)
- func (o *Bytes) Slice(start, end int) []byte
- func (o *Bytes) String() string
- func (o *Bytes) TypeName() string
- func (o *Bytes) Value() []byte
- type Error
- func (o *Error) Access(vm core.VM, index core.Value, mode core.Opcode) (core.Value, error)
- func (o *Error) AsBool() (bool, bool)
- func (o *Error) AsString() (string, bool)
- func (o *Error) Assign(core.Value, core.Value) error
- func (o *Error) BinaryOp(vm core.VM, op token.Token, rhs core.Value) (core.Value, error)
- func (o *Error) Copy(alloc core.Allocator) core.Value
- func (o *Error) Equals(x core.Value) bool
- func (o *Error) GobDecode(b []byte) error
- func (o *Error) GobEncode() ([]byte, error)
- func (o *Error) Interface() any
- func (o *Error) IsError() bool
- func (o *Error) IsFalse() bool
- func (o *Error) IsTrue() bool
- func (o *Error) Method(vm core.VM, name string, args []core.Value) (core.Value, error)
- func (o *Error) Set(value core.Value)
- func (o *Error) String() string
- func (o *Error) TypeName() string
- func (o *Error) Value() core.Value
- type Map
- func (o *Map) Access(vm core.VM, index core.Value, mode core.Opcode) (core.Value, error)
- func (o *Map) AsBool() (bool, bool)
- func (o *Map) AsString() (string, bool)
- func (o *Map) Assign(index, value core.Value) error
- func (o *Map) BinaryOp(vm core.VM, op token.Token, rhs core.Value) (core.Value, error)
- func (o *Map) Copy(alloc core.Allocator) core.Value
- func (o *Map) Delete(key string)
- func (o *Map) Equals(x core.Value) bool
- func (o *Map) Get(key string) (core.Value, bool)
- func (o *Map) GobDecode(b []byte) error
- func (o *Map) GobEncode() ([]byte, error)
- func (o *Map) Has(key string) bool
- func (o *Map) Interface() any
- func (o *Map) IsEmpty() bool
- func (o *Map) IsFalse() bool
- func (o *Map) IsImmutable() bool
- func (o *Map) IsIterable() bool
- func (o *Map) IsMap() bool
- func (o *Map) IsTrue() bool
- func (o *Map) Iterate(alloc core.Allocator) core.Iterator
- func (o *Map) Keys() []string
- func (o *Map) Len() int
- func (o *Map) Method(vm core.VM, name string, args []core.Value) (core.Value, error)
- func (o *Map) Set(val map[string]core.Value, immutable bool)
- func (o *Map) SetKey(key string, val core.Value)
- func (o *Map) String() string
- func (o *Map) TypeName() string
- func (o *Map) Value() map[string]core.Value
- type Object
- func (o *Object) Access(core.VM, core.Value, core.Opcode) (core.Value, error)
- func (o *Object) Arity() int
- func (o *Object) AsBool() (bool, bool)
- func (o *Object) AsBytes() ([]byte, bool)
- func (o *Object) AsChar() (rune, bool)
- func (o *Object) AsFloat() (float64, bool)
- func (o *Object) AsInt() (int64, bool)
- func (o *Object) AsString() (string, bool)
- func (o *Object) AsTime() (time.Time, bool)
- func (o *Object) Assign(core.Value, core.Value) error
- func (o *Object) BinaryOp(vm core.VM, op token.Token, rhs core.Value) (core.Value, error)
- func (o *Object) Call(core.VM, []core.Value) (core.Value, error)
- func (o *Object) Copy(core.Allocator) core.Value
- func (o *Object) Equals(x core.Value) bool
- func (o *Object) Interface() any
- func (o *Object) IsArray() bool
- func (o *Object) IsBool() bool
- func (o *Object) IsBuiltinFunction() bool
- func (o *Object) IsBytes() bool
- func (o *Object) IsCallable() bool
- func (o *Object) IsChar() bool
- func (o *Object) IsCompiledFunction() bool
- func (o *Object) IsError() bool
- func (o *Object) IsFalse() bool
- func (o *Object) IsFloat() bool
- func (o *Object) IsImmutable() bool
- func (o *Object) IsInt() bool
- func (o *Object) IsIterable() bool
- func (o *Object) IsMap() bool
- func (o *Object) IsRecord() bool
- func (o *Object) IsString() bool
- func (o *Object) IsTime() bool
- func (o *Object) IsTrue() bool
- func (o *Object) IsUndefined() bool
- func (o *Object) IsVariadic() bool
- func (o *Object) Iterate(core.Allocator) core.Iterator
- func (o *Object) Method(vm core.VM, name string, args []core.Value) (core.Value, error)
- func (o *Object) String() string
- func (o *Object) TypeName() string
- type Record
- func (o *Record) Access(vm core.VM, index core.Value, mode core.Opcode) (core.Value, error)
- func (o *Record) AsBool() (bool, bool)
- func (o *Record) AsString() (string, bool)
- func (o *Record) Assign(index, value core.Value) error
- func (o *Record) BinaryOp(vm core.VM, op token.Token, rhs core.Value) (core.Value, error)
- func (o *Record) Copy(alloc core.Allocator) core.Value
- func (o *Record) Delete(key string)
- func (o *Record) Equals(x core.Value) bool
- func (o *Record) Get(key string) (core.Value, bool)
- func (o *Record) GobDecode(b []byte) error
- func (o *Record) GobEncode() ([]byte, error)
- func (o *Record) Has(key string) bool
- func (o *Record) Interface() any
- func (o *Record) IsEmpty() bool
- func (o *Record) IsFalse() bool
- func (o *Record) IsImmutable() bool
- func (o *Record) IsIterable() bool
- func (o *Record) IsRecord() bool
- func (o *Record) IsTrue() bool
- func (o *Record) Iterate(alloc core.Allocator) core.Iterator
- func (o *Record) Keys() []string
- func (o *Record) Len() int
- func (o *Record) Method(vm core.VM, name string, args []core.Value) (core.Value, error)
- func (o *Record) Set(val map[string]core.Value, immutable bool)
- func (o *Record) SetKey(key string, val core.Value)
- func (o *Record) String() string
- func (o *Record) TypeName() string
- func (o *Record) Value() map[string]core.Value
- type String
- func (o *String) Access(vm core.VM, index core.Value, mode core.Opcode) (core.Value, error)
- func (o *String) Append(s string)
- func (o *String) AsBool() (bool, bool)
- func (o *String) AsBytes() ([]byte, bool)
- func (o *String) AsChar() (rune, bool)
- func (o *String) AsFloat() (float64, bool)
- func (o *String) AsInt() (int64, bool)
- func (o *String) AsString() (string, bool)
- func (o *String) AsTime() (time.Time, bool)
- func (o *String) Assign(core.Value, core.Value) error
- func (o *String) At(i int) rune
- func (o *String) BinaryOp(vm core.VM, op token.Token, rhs core.Value) (core.Value, error)
- func (o *String) Copy(alloc core.Allocator) core.Value
- func (o *String) Equals(x core.Value) bool
- func (o *String) Get(i int) (rune, bool)
- func (o *String) GobDecode(b []byte) error
- func (o *String) GobEncode() ([]byte, error)
- func (o *String) Interface() any
- func (o *String) IsEmpty() bool
- func (o *String) IsFalse() bool
- func (o *String) IsIterable() bool
- func (o *String) IsString() bool
- func (o *String) IsTrue() bool
- func (o *String) Iterate(alloc core.Allocator) core.Iterator
- func (o *String) Len() int
- func (o *String) Method(vm core.VM, name string, args []core.Value) (core.Value, error)
- func (o *String) Runes() []rune
- func (o *String) Set(s string)
- func (o *String) String() string
- func (o *String) Substring(start, end int) string
- func (o *String) TypeName() string
- func (o *String) Value() string
- type Time
- func (o *Time) Access(vm core.VM, index core.Value, op core.Opcode) (core.Value, error)
- func (o *Time) AsBool() (bool, bool)
- func (o *Time) AsInt() (int64, bool)
- func (o *Time) AsString() (string, bool)
- func (o *Time) AsTime() (time.Time, bool)
- func (o *Time) Assign(core.Value, core.Value) error
- func (o *Time) BinaryOp(vm core.VM, op token.Token, rhs core.Value) (core.Value, error)
- func (o *Time) Copy(alloc core.Allocator) core.Value
- func (o *Time) Equals(x core.Value) bool
- func (o *Time) GobDecode(b []byte) error
- func (o *Time) GobEncode() ([]byte, error)
- func (o *Time) Interface() any
- func (o *Time) IsFalse() bool
- func (o *Time) IsTime() bool
- func (o *Time) IsTrue() bool
- func (o *Time) Method(vm core.VM, name string, args []core.Value) (core.Value, error)
- func (o *Time) Set(t time.Time)
- func (o *Time) String() string
- func (o *Time) TypeName() string
- func (o *Time) Value() time.Time
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewStaticString ¶
Types ¶
type Array ¶
type Array struct {
Object
// contains filtered or unexported fields
}
func (*Array) IsImmutable ¶
func (*Array) IsIterable ¶
type Bytes ¶
type Bytes struct {
Object
// contains filtered or unexported fields
}
func (*Bytes) IsIterable ¶
type Error ¶
type Error struct {
Object
// contains filtered or unexported fields
}
type Map ¶
type Map struct {
Object
// contains filtered or unexported fields
}
func (*Map) IsImmutable ¶
func (*Map) IsIterable ¶
type Object ¶
type Object struct {
}
func (*Object) IsBuiltinFunction ¶
func (*Object) IsCallable ¶
func (*Object) IsCompiledFunction ¶
func (*Object) IsImmutable ¶
func (*Object) IsIterable ¶
func (*Object) IsUndefined ¶
func (*Object) IsVariadic ¶
type Record ¶
type Record struct {
Object
// contains filtered or unexported fields
}
func (*Record) IsImmutable ¶
func (*Record) IsIterable ¶
type String ¶
type String struct {
Object
// contains filtered or unexported fields
}
func (*String) IsIterable ¶
Click to show internal directories.
Click to hide internal directories.