Documentation ¶
Index ¶
- type ArrayV
- type ArrayValue
- type BoolV
- type BoolValue
- type Complex128V
- type Complex64V
- type ComplexValue
- type Float32V
- type Float64V
- type FloatValue
- type Func
- type FuncV
- type FuncValue
- type IdealFloatV
- type IdealFloatValue
- type IdealIntV
- type IdealIntValue
- type Int16V
- type Int32V
- type Int64V
- type Int8V
- type IntV
- type IntValue
- type Interface
- type InterfaceV
- type InterfaceValue
- type Map
- type MapV
- type MapValue
- type MultiV
- type PackageV
- type PackageValue
- type PtrV
- type PtrValue
- type Slice
- type SliceV
- type SliceValue
- type StringV
- type StringValue
- type StructV
- type StructValue
- type Uint16V
- type Uint32V
- type Uint64V
- type Uint8V
- type UintV
- type UintValue
- type UintptrV
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArrayValue ¶
type ArrayValue interface { vm.Value // TODO: Get() is here for uniformity, but is completely useless. // If a lot of other types have similarly useless Get methods, just special-case these uses. Get(*vm.Thread) ArrayValue // Elem(*vm.Thread, int64) vm.Value // Sub(i int64, len int64) ArrayValue // Sub returns an ArrayValue backed by the same array that starts from element i and has length len. }
type Complex128V ¶
type Complex128V complex128
func (*Complex128V) String ¶
func (v *Complex128V) String() string
type Complex64V ¶
type Complex64V complex64
func (*Complex64V) String ¶
func (v *Complex64V) String() string
type ComplexValue ¶
type FloatValue ¶
type IdealFloatV ¶
func (*IdealFloatV) Get ¶
func (v *IdealFloatV) Get() *big.Rat
func (*IdealFloatV) String ¶
func (v *IdealFloatV) String() string
type InterfaceV ¶
type InterfaceV struct {
Interface
}
func (*InterfaceV) String ¶
func (v *InterfaceV) String() string
type InterfaceValue ¶
type Map ¶
type Map interface { Len(*vm.Thread) int64 Elem(t *vm.Thread, key interface{}) vm.Value // Retrieve an element from the map, returning nil if it does not exist. SetElem(t *vm.Thread, key interface{}, val vm.Value) // Set an entry in the map. If val is nil, delete the entry. Iter(func(key interface{}, val vm.Value) bool) // TODO: Perhaps there should be an iterator interface instead. }
type PackageValue ¶
type Slice ¶
type Slice struct { Base ArrayValue Len int64 Cap int64 }
type SliceValue ¶
type StringValue ¶
type StructValue ¶
Click to show internal directories.
Click to hide internal directories.