stdlib

package
v2.18.0 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2024 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
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

func FuncAFFRF(fn func(float64, float64) float64) xgo.CallableFunc

FuncAFFRF transform a function of 'func(float64, float64) float64' signature into CallableFunc type.

func FuncAFIRB

func FuncAFIRB(fn func(float64, int) bool) xgo.CallableFunc

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

func FuncAFIRF

func FuncAFIRF(fn func(float64, int) float64) xgo.CallableFunc

FuncAFIRF transform a function of 'func(float64, int) float64' signature into CallableFunc type.

func FuncAFRB

func FuncAFRB(fn func(float64) bool) xgo.CallableFunc

FuncAFRB transform a function of 'func(float64) bool' signature into CallableFunc type.

func FuncAFRF

func FuncAFRF(fn func(float64) float64) xgo.CallableFunc

FuncAFRF transform a function of 'func(float64) float64' signature into CallableFunc type.

func FuncAFRI

func FuncAFRI(fn func(float64) int) xgo.CallableFunc

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

func FuncAI64RI64(fn func(int64) int64) xgo.CallableFunc

FuncAI64RI64 transform a function of 'func(int64) int64' signature into CallableFunc type.

func FuncAIFRF

func FuncAIFRF(fn func(int, float64) float64) xgo.CallableFunc

FuncAIFRF transform a function of 'func(int, float64) float64' signature into CallableFunc type.

func FuncAIIRE

func FuncAIIRE(fn func(int, int) error) xgo.CallableFunc

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

func FuncAIRF(fn func(int) float64) xgo.CallableFunc

FuncAIRF transform a function of 'func(int) float64' signature into CallableFunc type.

func FuncAIRIs

func FuncAIRIs(fn func(int) []int) xgo.CallableFunc

FuncAIRIs transform a function of 'func(int) []int' signature into CallableFunc type.

func FuncAIRS

func FuncAIRS(fn func(int) string) xgo.CallableFunc

FuncAIRS transform a function of 'func(int) string' signature into CallableFunc type.

func FuncAIRSsE

func FuncAIRSsE(fn func(int) ([]string, error)) xgo.CallableFunc

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

func FuncARIsE(fn func() ([]int, error)) xgo.CallableFunc

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

func FuncARSE(fn func() (string, error)) xgo.CallableFunc

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

func FuncARYE(fn func() ([]byte, error)) xgo.CallableFunc

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

func FuncASI64RE

func FuncASI64RE(fn func(string, int64) error) xgo.CallableFunc

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

func FuncASIIRE

func FuncASIIRE(fn func(string, int, int) error) xgo.CallableFunc

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

func FuncASIRS

func FuncASIRS(fn func(string, int) string) xgo.CallableFunc

FuncASIRS transform a function of 'func(string, int) string' signature into CallableFunc type.

func FuncASRE

func FuncASRE(fn func(string) error) xgo.CallableFunc

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

func FuncASRIE(fn func(string) (int, error)) xgo.CallableFunc

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

func FuncASRS

func FuncASRS(fn func(string) string) xgo.CallableFunc

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

func FuncASRSE(fn func(string) (string, error)) xgo.CallableFunc

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

func FuncASRSs(fn func(string) []string) xgo.CallableFunc

FuncASRSs transform a function of 'func(string) []string' signature into CallableFunc type.

func FuncASRYE

func FuncASRYE(fn func(string) ([]byte, error)) xgo.CallableFunc

FuncASRYE transform a function of 'func(string) ([]byte, error)' signature into CallableFunc type.

func FuncASSIRSs

func FuncASSIRSs(fn func(string, string, int) []string) xgo.CallableFunc

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

func FuncASSRB

func FuncASSRB(fn func(string, string) bool) xgo.CallableFunc

FuncASSRB transform a function of 'func(string, string) bool' signature into CallableFunc type.

func FuncASSRE

func FuncASSRE(fn func(string, string) error) xgo.CallableFunc

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

func FuncASSRI(fn func(string, string) int) xgo.CallableFunc

FuncASSRI transform a function of 'func(string, string) int' signature into CallableFunc type.

func FuncASSRS

func FuncASSRS(fn func(string, string) string) xgo.CallableFunc

FuncASSRS transform a function of 'func(string, string) string' signature into CallableFunc type.

func FuncASSRSs

func FuncASSRSs(fn func(string, string) []string) xgo.CallableFunc

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

func FuncASsSRS

func FuncASsSRS(fn func([]string, string) string) xgo.CallableFunc

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

func FuncAYRIE

func FuncAYRIE(fn func([]byte) (int, error)) xgo.CallableFunc

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

func FuncAYRS

func FuncAYRS(fn func([]byte) string) xgo.CallableFunc

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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