result

package
v0.1.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 26, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Object

type Object = vm.Object

Object is this packages copy of the the Object type

type Result

type Result struct {
	*vm.BaseObj
	// contains filtered or unexported fields
}

Result is a variant return type

func (Result) Empty

func (Result) Empty(t *Thread) Object

Empty creats a new empty Result

func (*Result) Inspect

func (r *Result) Inspect() string

Inspect delegates to ToString

func (*Result) MethodMissing

func (r *Result) MethodMissing(t *Thread, name Object) Object

MethodMissing will be called for all methods other than 'or'

func (Result) New

func (Result) New(t *Thread, name Object, value Object) Object

New creates and returns a new instance of a Result

func (*Result) Or

func (r *Result) Or(t *Thread) Object

Or should be the final catch all for a result call chain

func (*Result) ToJSON

func (r *Result) ToJSON(*Thread) string

ToJSON is supposed to json encoded a result, but it doesn't

func (*Result) ToString

func (r *Result) ToString() string

ToString returns the string representation of the result

func (*Result) Value

func (r *Result) Value() interface{}

Value returns the internal value of the result

type Thread

type Thread = vm.Thread

Thread is this packages copy of the the Thread type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL