Documentation ¶
Index ¶
- Variables
- func AllModuleNames() []string
- func FuncAFFRF(fn func(float64, float64) float64) xgo.CallableFunc
- func FuncAFIRB(fn func(float64, int) bool) xgo.CallableFunc
- func FuncAFIRF(fn func(float64, int) float64) xgo.CallableFunc
- func FuncAFRB(fn func(float64) bool) xgo.CallableFunc
- func FuncAFRF(fn func(float64) float64) xgo.CallableFunc
- func FuncAFRI(fn func(float64) int) xgo.CallableFunc
- func FuncAI64R(fn func(int64)) xgo.CallableFunc
- func FuncAI64RI64(fn func(int64) int64) xgo.CallableFunc
- func FuncAIFRF(fn func(int, float64) float64) xgo.CallableFunc
- func FuncAIIRE(fn func(int, int) error) xgo.CallableFunc
- func FuncAIR(fn func(int)) xgo.CallableFunc
- func FuncAIRF(fn func(int) float64) xgo.CallableFunc
- func FuncAIRIs(fn func(int) []int) xgo.CallableFunc
- func FuncAIRS(fn func(int) string) xgo.CallableFunc
- func FuncAIRSsE(fn func(int) ([]string, error)) xgo.CallableFunc
- func FuncAR(fn func()) xgo.CallableFunc
- func FuncARB(fn func() bool) xgo.CallableFunc
- func FuncARE(fn func() error) xgo.CallableFunc
- func FuncARF(fn func() float64) xgo.CallableFunc
- func FuncARI(fn func() int) xgo.CallableFunc
- func FuncARI64(fn func() int64) xgo.CallableFunc
- func FuncARIsE(fn func() ([]int, error)) xgo.CallableFunc
- func FuncARS(fn func() string) xgo.CallableFunc
- func FuncARSE(fn func() (string, error)) xgo.CallableFunc
- func FuncARSs(fn func() []string) xgo.CallableFunc
- func FuncARYE(fn func() ([]byte, error)) xgo.CallableFunc
- func FuncASI64RE(fn func(string, int64) error) xgo.CallableFunc
- func FuncASIIRE(fn func(string, int, int) error) xgo.CallableFunc
- func FuncASIRS(fn func(string, int) string) xgo.CallableFunc
- func FuncASRE(fn func(string) error) xgo.CallableFunc
- func FuncASRIE(fn func(string) (int, error)) xgo.CallableFunc
- func FuncASRS(fn func(string) string) xgo.CallableFunc
- func FuncASRSE(fn func(string) (string, error)) xgo.CallableFunc
- func FuncASRSs(fn func(string) []string) xgo.CallableFunc
- func FuncASRYE(fn func(string) ([]byte, error)) xgo.CallableFunc
- func FuncASSIRSs(fn func(string, string, int) []string) xgo.CallableFunc
- func FuncASSRB(fn func(string, string) bool) xgo.CallableFunc
- func FuncASSRE(fn func(string, string) error) xgo.CallableFunc
- func FuncASSRI(fn func(string, string) int) xgo.CallableFunc
- func FuncASSRS(fn func(string, string) string) xgo.CallableFunc
- func FuncASSRSs(fn func(string, string) []string) xgo.CallableFunc
- func FuncASsSRS(fn func([]string, string) string) xgo.CallableFunc
- func FuncAYRIE(fn func([]byte) (int, error)) xgo.CallableFunc
- func FuncAYRS(fn func([]byte) string) xgo.CallableFunc
- func GetModuleMap(names ...string) *xgo.ModuleMap
Constants ¶
This section is empty.
Variables ¶
var BuiltinModules = map[string]map[string]xgo.Object{ "math": mathModule, "os": osModule, "text": textModule, "times": timesModule, "rand": randModule, "fmt": fmtModule, "json": jsonModule, "base64": base64Module, "hex": hexModule, "url": nil, "http": http.Module, "paths": paths.Module, "html": html.Module, "log": log.Module, "cjson": cjson.Module, }
BuiltinModules are builtin type standard library modules.
var SourceModules = map[string]string{
"enum": srcmodEnum,
}
SourceModules are source type standard library modules.
Functions ¶
func AllModuleNames ¶
func AllModuleNames() []string
AllModuleNames returns a list of all default module names.
func FuncAFFRF ¶
FuncAFFRF transform a function of 'func(float64, float64) float64' signature into CallableFunc type.
func FuncAFIRB ¶
FuncAFIRB transform a function of 'func(float64, int) bool' signature into CallableFunc type.
func FuncAFIRF ¶
FuncAFIRF transform a function of 'func(float64, int) float64' signature into CallableFunc type.
func FuncAFRB ¶
FuncAFRB transform a function of 'func(float64) bool' signature into CallableFunc type.
func FuncAFRF ¶
FuncAFRF transform a function of 'func(float64) float64' signature into CallableFunc type.
func FuncAFRI ¶
FuncAFRI transform a function of 'func(float64) int' signature into CallableFunc type.
func FuncAI64R ¶
func FuncAI64R(fn func(int64)) xgo.CallableFunc
FuncAI64R transform a function of 'func(int64)' signature into CallableFunc type.
func FuncAI64RI64 ¶
FuncAI64RI64 transform a function of 'func(int64) int64' signature into CallableFunc type.
func FuncAIFRF ¶
FuncAIFRF transform a function of 'func(int, float64) float64' signature into CallableFunc type.
func FuncAIIRE ¶
FuncAIIRE transform a function of 'func(int, int) error' signature into CallableFunc type.
func FuncAIR ¶
func FuncAIR(fn func(int)) xgo.CallableFunc
FuncAIR transform a function of 'func(int)' signature into CallableFunc type.
func FuncAIRF ¶
FuncAIRF transform a function of 'func(int) float64' signature into CallableFunc type.
func FuncAIRIs ¶
FuncAIRIs transform a function of 'func(int) []int' signature into CallableFunc type.
func FuncAIRS ¶
FuncAIRS transform a function of 'func(int) string' signature into CallableFunc type.
func FuncAIRSsE ¶
FuncAIRSsE transform a function of 'func(int) ([]string, error)' signature into CallableFunc type.
func FuncAR ¶
func FuncAR(fn func()) xgo.CallableFunc
FuncAR transform a function of 'func()' signature into CallableFunc type.
func FuncARB ¶
func FuncARB(fn func() bool) xgo.CallableFunc
FuncARB transform a function of 'func() bool' signature into CallableFunc type.
func FuncARE ¶
func FuncARE(fn func() error) xgo.CallableFunc
FuncARE transform a function of 'func() error' signature into CallableFunc type.
func FuncARF ¶
func FuncARF(fn func() float64) xgo.CallableFunc
FuncARF transform a function of 'func() float64' signature into CallableFunc type.
func FuncARI ¶
func FuncARI(fn func() int) xgo.CallableFunc
FuncARI transform a function of 'func() int' signature into CallableFunc type.
func FuncARI64 ¶
func FuncARI64(fn func() int64) xgo.CallableFunc
FuncARI64 transform a function of 'func() int64' signature into CallableFunc type.
func FuncARIsE ¶
FuncARIsE transform a function of 'func() ([]int, error)' signature into CallableFunc type.
func FuncARS ¶
func FuncARS(fn func() string) xgo.CallableFunc
FuncARS transform a function of 'func() string' signature into CallableFunc type.
func FuncARSE ¶
FuncARSE transform a function of 'func() (string, error)' signature into CallableFunc type.
func FuncARSs ¶
func FuncARSs(fn func() []string) xgo.CallableFunc
FuncARSs transform a function of 'func() []string' signature into CallableFunc type.
func FuncARYE ¶
FuncARYE transform a function of 'func() ([]byte, error)' signature into CallableFunc type.
func FuncASI64RE ¶
FuncASI64RE transform a function of 'func(string, int64) error' signature into CallableFunc type.
func FuncASIIRE ¶
FuncASIIRE transform a function of 'func(string, int, int) error' signature into CallableFunc type.
func FuncASIRS ¶
FuncASIRS transform a function of 'func(string, int) string' signature into CallableFunc type.
func FuncASRE ¶
FuncASRE transform a function of 'func(string) error' signature into CallableFunc type. User function will return 'true' if underlying native function returns nil.
func FuncASRIE ¶
FuncASRIE transform a function of 'func(string) (int, error)' signature into CallableFunc type.
func FuncASRS ¶
FuncASRS transform a function of 'func(string) string' signature into CallableFunc type. User function will return 'true' if underlying native function returns nil.
func FuncASRSE ¶
FuncASRSE transform a function of 'func(string) (string, error)' signature into CallableFunc type. User function will return 'true' if underlying native function returns nil.
func FuncASRSs ¶
FuncASRSs transform a function of 'func(string) []string' signature into CallableFunc type.
func FuncASRYE ¶
FuncASRYE transform a function of 'func(string) ([]byte, error)' signature into CallableFunc type.
func FuncASSIRSs ¶
FuncASSIRSs transform a function of 'func(string, string, int) []string' signature into CallableFunc type.
func FuncASSRB ¶
FuncASSRB transform a function of 'func(string, string) bool' signature into CallableFunc type.
func FuncASSRE ¶
FuncASSRE transform a function of 'func(string, string) error' signature into CallableFunc type. User function will return 'true' if underlying native function returns nil.
func FuncASSRI ¶
FuncASSRI transform a function of 'func(string, string) int' signature into CallableFunc type.
func FuncASSRS ¶
FuncASSRS transform a function of 'func(string, string) string' signature into CallableFunc type.
func FuncASSRSs ¶
FuncASSRSs transform a function of 'func(string, string) []string' signature into CallableFunc type.
func FuncASsSRS ¶
FuncASsSRS transform a function of 'func([]string, string) string' signature into CallableFunc type.
func FuncAYRIE ¶
FuncAYRIE transform a function of 'func([]byte) (int, error)' signature into CallableFunc type.
func FuncAYRS ¶
FuncAYRS transform a function of 'func([]byte) string' signature into CallableFunc type.
func GetModuleMap ¶
func GetModuleMap(names ...string) *xgo.ModuleMap
GetModuleMap returns the module map that includes all modules for the given module names.
Types ¶
This section is empty.