Documentation ¶
Index ¶
- Variables
- func GFunctionFromFloatFloatToFloat(functionName string, fn func(float64, float64) float64) vida.GFunction
- func GFunctionFromFloatToFloat(functionName string, fn func(float64) float64) vida.GFunction
- func GFunctionFromIntToInt(functionName string, fn func(int64) int64) vida.GFunction
- func GFunctionFromStringToBool(functionName string, fn func(string) bool) vida.GFunction
- func GFunctionFromVoidToFloat(functionName string, fn func() float64) vida.GFunction
- func GFunctionFromVoidToInt(functionName string, fn func() int64) vida.GFunction
- func GFunctionFromVoidToString(functionName string, fn func() string) vida.GFunction
- func GFunctionFromVoidToUInt(functionName string, fn func() uint64) vida.GFunction
- type BytesBuffer
- func (buffer *BytesBuffer) BinaryOp(op byte, rhs vida.Value) (vida.Value, error)
- func (buffer *BytesBuffer) Clone() vida.Value
- func (buffer *BytesBuffer) Description() string
- func (buffer *BytesBuffer) Equals(other vida.Value) bool
- func (buffer *BytesBuffer) GetMethod(name string) (vida.Value, bool, error)
- func (buffer *BytesBuffer) HasMethods() bool
- func (buffer *BytesBuffer) IndexGet(index vida.Value) (vida.Value, error)
- func (buffer *BytesBuffer) IndexSet(index, value vida.Value) error
- func (buffer *BytesBuffer) IsHashable() bool
- func (buffer *BytesBuffer) IsIterable() bool
- func (buffer *BytesBuffer) IsValueSemantics() bool
- func (buffer *BytesBuffer) MakeHashKey() vida.HashKey
- func (buffer *BytesBuffer) MakeIterator() vida.Iterator
- func (buffer *BytesBuffer) PrefixOp(op byte) (vida.Value, error)
- func (buffer *BytesBuffer) TypeName() string
- type Cmd
- func (cmd Cmd) BinaryOp(op byte, rhs vida.Value) (vida.Value, error)
- func (cmd Cmd) Clone() vida.Value
- func (cmd Cmd) Description() string
- func (cmd Cmd) Equals(other vida.Value) bool
- func (cmd Cmd) GetMethod(name string) (vida.Value, bool, error)
- func (cmd Cmd) HasMethods() bool
- func (cmd Cmd) IsHashable() bool
- func (cmd Cmd) IsIterable() bool
- func (cmd Cmd) IsValueSemantics() bool
- func (cmd Cmd) MakeHashKey() vida.HashKey
- func (cmd Cmd) MakeIterator() vida.Iterator
- func (cmd Cmd) PrefixOp(op byte) (vida.Value, error)
- func (cmd Cmd) TypeName() string
- type Duration
- func (d Duration) BinaryOp(op byte, rhs vida.Value) (vida.Value, error)
- func (d Duration) Clone() vida.Value
- func (d Duration) Description() string
- func (d Duration) Equals(other vida.Value) bool
- func (d Duration) GetMethod(name string) (vida.Value, bool, error)
- func (d Duration) HasMethods() bool
- func (d Duration) IsHashable() bool
- func (d Duration) IsIterable() bool
- func (d Duration) IsValueSemantics() bool
- func (d Duration) MakeHashKey() vida.HashKey
- func (d Duration) MakeIterator() vida.Iterator
- func (d Duration) PrefixOp(op byte) (vida.Value, error)
- func (d Duration) TypeName() string
- type File
- func (file *File) BinaryOp(op byte, rhs vida.Value) (vida.Value, error)
- func (file *File) Clone() vida.Value
- func (file *File) Description() string
- func (file *File) Equals(other vida.Value) bool
- func (file *File) GetMethod(name string) (vida.Value, bool, error)
- func (file *File) HasMethods() bool
- func (file *File) IsHashable() bool
- func (file *File) IsIterable() bool
- func (file *File) IsValueSemantics() bool
- func (file *File) MakeHashKey() vida.HashKey
- func (file *File) MakeIterator() vida.Iterator
- func (file *File) PrefixOp(op byte) (vida.Value, error)
- func (file *File) TypeName() string
- type Month
- func (m Month) BinaryOp(op byte, rhs vida.Value) (vida.Value, error)
- func (m Month) Clone() vida.Value
- func (m Month) Description() string
- func (m Month) Equals(other vida.Value) bool
- func (m Month) GetMethod(name string) (vida.Value, bool, error)
- func (m Month) HasMethods() bool
- func (m Month) IsHashable() bool
- func (m Month) IsIterable() bool
- func (m Month) IsValueSemantics() bool
- func (m Month) MakeHashKey() vida.HashKey
- func (m Month) MakeIterator() vida.Iterator
- func (m Month) PrefixOp(op byte) (vida.Value, error)
- func (m Month) TypeName() string
- type Regex
- func (re *Regex) BinaryOp(op byte, rhs vida.Value) (vida.Value, error)
- func (re *Regex) Clone() vida.Value
- func (re *Regex) Description() string
- func (re *Regex) Equals(other vida.Value) bool
- func (re *Regex) GetMethod(name string) (vida.Value, bool, error)
- func (re *Regex) HasMethods() bool
- func (re *Regex) IsHashable() bool
- func (re *Regex) IsIterable() bool
- func (re *Regex) IsValueSemantics() bool
- func (re *Regex) MakeHashKey() vida.HashKey
- func (re *Regex) MakeIterator() vida.Iterator
- func (re *Regex) PrefixOp(op byte) (vida.Value, error)
- func (re *Regex) TypeName() string
- type StringBuilder
- func (builder *StringBuilder) BinaryOp(op byte, rhs vida.Value) (vida.Value, error)
- func (builder *StringBuilder) Clone() vida.Value
- func (builder *StringBuilder) Description() string
- func (builder *StringBuilder) Equals(other vida.Value) bool
- func (builder *StringBuilder) GetMethod(name string) (vida.Value, bool, error)
- func (builder *StringBuilder) HasMethods() bool
- func (builder *StringBuilder) IsHashable() bool
- func (builder *StringBuilder) IsIterable() bool
- func (builder *StringBuilder) IsValueSemantics() bool
- func (builder *StringBuilder) MakeHashKey() vida.HashKey
- func (builder *StringBuilder) MakeIterator() vida.Iterator
- func (builder *StringBuilder) PrefixOp(op byte) (vida.Value, error)
- func (builder *StringBuilder) TypeName() string
- type Time
- func (t Time) BinaryOp(op byte, rhs vida.Value) (vida.Value, error)
- func (t Time) Clone() vida.Value
- func (t Time) Description() string
- func (t Time) Equals(other vida.Value) bool
- func (t Time) GetMethod(name string) (vida.Value, bool, error)
- func (t Time) HasMethods() bool
- func (t Time) IsHashable() bool
- func (t Time) IsIterable() bool
- func (t Time) IsValueSemantics() bool
- func (t Time) MakeHashKey() vida.HashKey
- func (t Time) MakeIterator() vida.Iterator
- func (t Time) PrefixOp(op byte) (vida.Value, error)
- func (t Time) TypeName() string
- type WeekDay
- func (day WeekDay) BinaryOp(op byte, rhs vida.Value) (vida.Value, error)
- func (day WeekDay) Clone() vida.Value
- func (day WeekDay) Description() string
- func (day WeekDay) Equals(other vida.Value) bool
- func (day WeekDay) GetMethod(name string) (vida.Value, bool, error)
- func (day WeekDay) HasMethods() bool
- func (day WeekDay) IsHashable() bool
- func (day WeekDay) IsIterable() bool
- func (day WeekDay) IsValueSemantics() bool
- func (day WeekDay) MakeHashKey() vida.HashKey
- func (day WeekDay) MakeIterator() vida.Iterator
- func (day WeekDay) PrefixOp(op byte) (vida.Value, error)
- func (day WeekDay) TypeName() string
Constants ¶
This section is empty.
Variables ¶
var BytesBufferInterface vida.Namespace
BytesBufferInterface is the collection of methods for the type Bytes.
var CMDInterface vida.Namespace
var FileInterface vida.Namespace
var RegexInterface vida.Namespace
var Stdlib = map[string]vida.LibLoader{
"math": loadMath,
"random": loadRandom,
"time": loadTime,
"stringBuilder": loadStringBuilder,
"bytesBuffer": loadBytesBuffer,
"io": loadIO,
"fmt": loadFmt,
"regex": loadRegex,
"cmd": loadCMD,
}
Stdlib is the map mapping module names to LibLoaders.
var StringBuilderInterface vida.Namespace
Functions ¶
func GFunctionFromFloatFloatToFloat ¶
func GFunctionFromFloatFloatToFloat(functionName string, fn func(float64, float64) float64) vida.GFunction
GFunctionFromFloatToFloat wraps a Go function type func(float64, float64)float64
func GFunctionFromFloatToFloat ¶
GFunctionFromFloatToFloat wraps a Go function type func(float64)float64
func GFunctionFromIntToInt ¶
GFunctionFromIntToInt wraps a Go function type func(int64)int64
func GFunctionFromStringToBool ¶
GFunctionFromStringToBool wraps a Go function type func(string)bool
func GFunctionFromVoidToFloat ¶
GFunctionFromVoidToFloat wraps a Go function type func()float64
func GFunctionFromVoidToInt ¶
GFunctionFromVoidToInt wraps a Go function type func()int64
func GFunctionFromVoidToString ¶
GFunctionFromVoidToString wraps a Go function type func()string
Types ¶
type BytesBuffer ¶
BytesBuffer models a bytes buffer with operations to read and write aribitrary bytes.
func (*BytesBuffer) Clone ¶
func (buffer *BytesBuffer) Clone() vida.Value
func (*BytesBuffer) Description ¶
func (buffer *BytesBuffer) Description() string
func (*BytesBuffer) HasMethods ¶
func (buffer *BytesBuffer) HasMethods() bool
func (*BytesBuffer) IsHashable ¶
func (buffer *BytesBuffer) IsHashable() bool
func (*BytesBuffer) IsIterable ¶
func (buffer *BytesBuffer) IsIterable() bool
func (*BytesBuffer) IsValueSemantics ¶
func (buffer *BytesBuffer) IsValueSemantics() bool
func (*BytesBuffer) MakeHashKey ¶
func (buffer *BytesBuffer) MakeHashKey() vida.HashKey
func (*BytesBuffer) MakeIterator ¶
func (buffer *BytesBuffer) MakeIterator() vida.Iterator
type Cmd ¶
Cmd is a wrapper for Golang *exec.Cmd.
func (Cmd) Description ¶
func (Cmd) HasMethods ¶
func (Cmd) IsHashable ¶
func (Cmd) IsIterable ¶
func (Cmd) IsValueSemantics ¶
func (Cmd) MakeHashKey ¶
func (Cmd) MakeIterator ¶
type Duration ¶
Durations models Go's Duration type derived from int64
func (Duration) Description ¶
func (Duration) HasMethods ¶
func (Duration) IsHashable ¶
func (Duration) IsIterable ¶
func (Duration) IsValueSemantics ¶
func (Duration) MakeHashKey ¶
func (Duration) MakeIterator ¶
type File ¶
File models an open file descriptor.
func (*File) Description ¶
func (*File) HasMethods ¶
func (*File) IsHashable ¶
func (*File) IsIterable ¶
func (*File) IsValueSemantics ¶
func (*File) MakeHashKey ¶
func (*File) MakeIterator ¶
type Month ¶
Month models weekdays.
func (Month) Description ¶
func (Month) HasMethods ¶
func (Month) IsHashable ¶
func (Month) IsIterable ¶
func (Month) IsValueSemantics ¶
func (Month) MakeHashKey ¶
func (Month) MakeIterator ¶
type Regex ¶
func (*Regex) Description ¶
func (*Regex) HasMethods ¶
func (*Regex) IsHashable ¶
func (*Regex) IsIterable ¶
func (*Regex) IsValueSemantics ¶
func (*Regex) MakeHashKey ¶
func (*Regex) MakeIterator ¶
type StringBuilder ¶
StringBuilder models an efficient way to build Strings.
func (*StringBuilder) Clone ¶
func (builder *StringBuilder) Clone() vida.Value
func (*StringBuilder) Description ¶
func (builder *StringBuilder) Description() string
func (*StringBuilder) HasMethods ¶
func (builder *StringBuilder) HasMethods() bool
func (*StringBuilder) IsHashable ¶
func (builder *StringBuilder) IsHashable() bool
func (*StringBuilder) IsIterable ¶
func (builder *StringBuilder) IsIterable() bool
func (*StringBuilder) IsValueSemantics ¶
func (builder *StringBuilder) IsValueSemantics() bool
func (*StringBuilder) MakeHashKey ¶
func (builder *StringBuilder) MakeHashKey() vida.HashKey
func (*StringBuilder) MakeIterator ¶
func (builder *StringBuilder) MakeIterator() vida.Iterator
type Time ¶
Time models Go's Time struct for wall and monotonic clock.
func (Time) Description ¶
func (Time) HasMethods ¶
func (Time) IsHashable ¶
func (Time) IsIterable ¶
func (Time) IsValueSemantics ¶
func (Time) MakeHashKey ¶
func (Time) MakeIterator ¶
type WeekDay ¶
WeekDay models weekdays.