stdlib

package
v1.8.4 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2019 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Modules = map[string]*objects.ImmutableMap{
	"math":  {Value: mathModule},
	"os":    {Value: osModule},
	"text":  {Value: textModule},
	"times": {Value: timesModule},
	"rand":  {Value: randModule},
}

Modules contain the standard modules.

Functions

func FuncAFFRF

func FuncAFFRF(fn func(float64, float64) float64) *objects.UserFunction

FuncAFFRF transform a function of 'func(float64, float64) float64' signature into a user function object.

func FuncAFIRB

func FuncAFIRB(fn func(float64, int) bool) *objects.UserFunction

FuncAFIRB transform a function of 'func(float64, int) bool' signature into a user function object.

func FuncAFIRF

func FuncAFIRF(fn func(float64, int) float64) *objects.UserFunction

FuncAFIRF transform a function of 'func(float64, int) float64' signature into a user function object.

func FuncAFRB

func FuncAFRB(fn func(float64) bool) *objects.UserFunction

FuncAFRB transform a function of 'func(float64) bool' signature into a user function object.

func FuncAFRF

func FuncAFRF(fn func(float64) float64) *objects.UserFunction

FuncAFRF transform a function of 'func(float64) float64' signature into a user function object.

func FuncAFRI

func FuncAFRI(fn func(float64) int) *objects.UserFunction

FuncAFRI transform a function of 'func(float64) int' signature into a user function object.

func FuncAI64R added in v1.7.0

func FuncAI64R(fn func(int64)) *objects.UserFunction

FuncAI64R transform a function of 'func(int64)' signature into a user function object.

func FuncAI64RI64 added in v1.7.0

func FuncAI64RI64(fn func(int64) int64) *objects.UserFunction

FuncAI64RI64 transform a function of 'func(int64) int64' signature into a user function object.

func FuncAIFRF

func FuncAIFRF(fn func(int, float64) float64) *objects.UserFunction

FuncAIFRF transform a function of 'func(int, float64) float64' signature into a user function object.

func FuncAIIRE

func FuncAIIRE(fn func(int, int) error) *objects.UserFunction

FuncAIIRE transform a function of 'func(int, int) error' signature into a user function object.

func FuncAIR

func FuncAIR(fn func(int)) *objects.UserFunction

FuncAIR transform a function of 'func(int)' signature into a user function object.

func FuncAIRF

func FuncAIRF(fn func(int) float64) *objects.UserFunction

FuncAIRF transform a function of 'func(int) float64' signature into a user function object.

func FuncAIRIs added in v1.7.0

func FuncAIRIs(fn func(int) []int) *objects.UserFunction

FuncAIRIs transform a function of 'func(int) []int' signature into a user function object.

func FuncAIRS

func FuncAIRS(fn func(int) string) *objects.UserFunction

FuncAIRS transform a function of 'func(int) string' signature into a user function object.

func FuncAIRSsE

func FuncAIRSsE(fn func(int) ([]string, error)) *objects.UserFunction

FuncAIRSsE transform a function of 'func(int) ([]string, error)' signature into a user function object.

func FuncAR

func FuncAR(fn func()) *objects.UserFunction

FuncAR transform a function of 'func()' signature into a user function object.

func FuncARB

func FuncARB(fn func() bool) *objects.UserFunction

FuncARB transform a function of 'func() bool' signature into a user function object.

func FuncARE

func FuncARE(fn func() error) *objects.UserFunction

FuncARE transform a function of 'func() error' signature into a user function object.

func FuncARF

func FuncARF(fn func() float64) *objects.UserFunction

FuncARF transform a function of 'func() float64' signature into a user function object.

func FuncARI

func FuncARI(fn func() int) *objects.UserFunction

FuncARI transform a function of 'func() int' signature into a user function object.

func FuncARI64 added in v1.7.0

func FuncARI64(fn func() int64) *objects.UserFunction

FuncARI64 transform a function of 'func() int64' signature into a user function object.

func FuncARIsE

func FuncARIsE(fn func() ([]int, error)) *objects.UserFunction

FuncARIsE transform a function of 'func() ([]int, error)' signature into a user function object.

func FuncARS

func FuncARS(fn func() string) *objects.UserFunction

FuncARS transform a function of 'func() string' signature into a user function object.

func FuncARSE

func FuncARSE(fn func() (string, error)) *objects.UserFunction

FuncARSE transform a function of 'func() (string, error)' signature into a user function object.

func FuncARSs

func FuncARSs(fn func() []string) *objects.UserFunction

FuncARSs transform a function of 'func() []string' signature into a user function object.

func FuncARYE

func FuncARYE(fn func() ([]byte, error)) *objects.UserFunction

FuncARYE transform a function of 'func() ([]byte, error)' signature into a user function object.

func FuncASI64RE

func FuncASI64RE(fn func(string, int64) error) *objects.UserFunction

FuncASI64RE transform a function of 'func(string, int64) error' signature into a user function object.

func FuncASIIRE

func FuncASIIRE(fn func(string, int, int) error) *objects.UserFunction

FuncASIIRE transform a function of 'func(string, int, int) error' signature into a user function object.

func FuncASIRS

func FuncASIRS(fn func(string, int) string) *objects.UserFunction

FuncASIRS transform a function of 'func(string, int) string' signature into a user function object.

func FuncASRE

func FuncASRE(fn func(string) error) *objects.UserFunction

FuncASRE transform a function of 'func(string) error' signature into a user function object. User function will return 'true' if underlying native function returns nil.

func FuncASRIE

func FuncASRIE(fn func(string) (int, error)) *objects.UserFunction

FuncASRIE transform a function of 'func(string) (int, error)' signature into a user function object.

func FuncASRS

func FuncASRS(fn func(string) string) *objects.UserFunction

FuncASRS transform a function of 'func(string) string' signature into a user function object. User function will return 'true' if underlying native function returns nil.

func FuncASRSE

func FuncASRSE(fn func(string) (string, error)) *objects.UserFunction

FuncASRSE transform a function of 'func(string) (string, error)' signature into a user function object. User function will return 'true' if underlying native function returns nil.

func FuncASRSs

func FuncASRSs(fn func(string) []string) *objects.UserFunction

FuncASRSs transform a function of 'func(string) []string' signature into a user function object.

func FuncASSIRSs

func FuncASSIRSs(fn func(string, string, int) []string) *objects.UserFunction

FuncASSIRSs transform a function of 'func(string, string, int) []string' signature into a user function object.

func FuncASSRB

func FuncASSRB(fn func(string, string) bool) *objects.UserFunction

FuncASSRB transform a function of 'func(string, string) bool' signature into a user function object.

func FuncASSRE

func FuncASSRE(fn func(string, string) error) *objects.UserFunction

FuncASSRE transform a function of 'func(string, string) error' signature into a user function object. User function will return 'true' if underlying native function returns nil.

func FuncASSRI

func FuncASSRI(fn func(string, string) int) *objects.UserFunction

FuncASSRI transform a function of 'func(string, string) int' signature into a user function object.

func FuncASSRS

func FuncASSRS(fn func(string, string) string) *objects.UserFunction

FuncASSRS transform a function of 'func(string, string) string' signature into a user function object.

func FuncASSRSs

func FuncASSRSs(fn func(string, string) []string) *objects.UserFunction

FuncASSRSs transform a function of 'func(string, string) []string' signature into a user function object.

func FuncASsSRS

func FuncASsSRS(fn func([]string, string) string) *objects.UserFunction

FuncASsSRS transform a function of 'func([]string, string) string' signature into a user function object.

func FuncAYRIE

func FuncAYRIE(fn func([]byte) (int, error)) *objects.UserFunction

FuncAYRIE transform a function of 'func([]byte) (int, error)' signature into a user function object.

Types

This section is empty.

Jump to

Keyboard shortcuts

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