stdlib

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2024 License: MIT Imports: 61 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BuiltinModules = map[string]map[string]tender.Object{
	"math":      mathModule,
	"os":        osModule,
	"strings":   stringsModule,
	"times":     timesModule,
	"rand":      randModule,
	"fmt":       fmtModule,
	"json":      jsonModule,
	"base64":    base64Module,
	"hex":       hexModule,
	"colors":    colorsModule,
	"gzip":      gzipModule,
	"zip":       zipModule,
	"tar":       tarModule,
	"bufio":     bufioModule,
	"crypto":    cryptoModule,
	"path":      pathModule,
	"image":     imageModule,
	"canvas":    canvasModule,
	"dll":       dllModule,
	"io":        ioModule,
	"audio":     audioModule,
	"net":       netModule,
	"http":      httpModule,
	"websocket": websocketModule,
	"gob":       gobModule,
	"csv":       csvModule,
}

BuiltinModules are builtin type standard library modules.

Functions

func AllModuleNames

func AllModuleNames() []string

AllModuleNames returns a list of all default module names.

func FuncAFFFFFFR

func FuncAFFFFFFR(fn func(float64, float64, float64, float64, float64, float64)) tender.CallableFunc

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

func FuncAFFFFFR

func FuncAFFFFFR(fn func(float64, float64, float64, float64, float64)) tender.CallableFunc

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

func FuncAFFFFR

func FuncAFFFFR(fn func(float64, float64, float64, float64)) tender.CallableFunc

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

func FuncAFFFR

func FuncAFFFR(fn func(float64, float64, float64)) tender.CallableFunc

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

func FuncAFFR

func FuncAFFR(fn func(float64, float64)) tender.CallableFunc

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

func FuncAFFRF

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

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

func FuncAFFRFF

func FuncAFFRFF(fn func(float64, float64) (float64, float64)) tender.CallableFunc

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

func FuncAFIRB

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

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

func FuncAFIRF

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

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

func FuncAFR

func FuncAFR(fn func(float64)) tender.CallableFunc

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

func FuncAFRB

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

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

func FuncAFRF

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

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

func FuncAFRI

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

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

func FuncAI64IRI64E

func FuncAI64IRI64E(fn func(int64, int) (int64, error)) tender.CallableFunc

func FuncAI64R

func FuncAI64R(fn func(int64)) tender.CallableFunc

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

func FuncAI64RI64

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

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

func FuncAIFRF

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

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

func FuncAIIIIR

func FuncAIIIIR(fn func(int, int, int, int)) tender.CallableFunc

func FuncAIIIR

func FuncAIIIR(fn func(int, int, int)) tender.CallableFunc

func FuncAIIR

func FuncAIIR(fn func(int, int)) tender.CallableFunc

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

func FuncAIIRE

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

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

func FuncAIR

func FuncAIR(fn func(int)) tender.CallableFunc

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

func FuncAIRF

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

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

func FuncAIRIs

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

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

func FuncAIRS

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

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

func FuncAIRSsE

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

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

func FuncAR

func FuncAR(fn func()) tender.CallableFunc

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

func FuncARB

func FuncARB(fn func() bool) tender.CallableFunc

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

func FuncARE

func FuncARE(fn func() error) tender.CallableFunc

FuncARE transform a function of 'func() error' signature into CallableFunc type.

func FuncARF

func FuncARF(fn func() float64) tender.CallableFunc

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

func FuncARI

func FuncARI(fn func() int) tender.CallableFunc

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

func FuncARI64

func FuncARI64(fn func() int64) tender.CallableFunc

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

func FuncARI64E

func FuncARI64E(fn func() (int64, error)) tender.CallableFunc

func FuncARIsE

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

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

func FuncARS

func FuncARS(fn func() string) tender.CallableFunc

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

func FuncARSE

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

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

func FuncARSs

func FuncARSs(fn func() []string) tender.CallableFunc

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

func FuncARYE

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

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

func FuncARu8

func FuncARu8(fn func() uint8) tender.CallableFunc

func FuncASFFFFR

func FuncASFFFFR(fn func(string, float64, float64, float64, float64)) tender.CallableFunc

func FuncASFFR

func FuncASFFR(fn func(string, float64, float64)) tender.CallableFunc

FuncASFFR transform a function of 'func(string, float, float)' signature into CallableFunc type. User function will return 'true' if underlying native function returns nil.

func FuncASFRE

func FuncASFRE(fn func(string, float64) error) tender.CallableFunc

func FuncASFRFF

func FuncASFRFF(fn func(string, float64) (float64, float64)) tender.CallableFunc

func FuncASFRSs

func FuncASFRSs(fn func(string, float64) []string) tender.CallableFunc

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

func FuncASI64RE

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

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

func FuncASIIRE

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

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

func FuncASIRS

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

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

func FuncASR

func FuncASR(fn func(string)) tender.CallableFunc

FuncASR transform a function of 'func(string)' signature native function returns nil.

func FuncASRB

func FuncASRB(fn func(string) bool) tender.CallableFunc

func FuncASRE

func FuncASRE(fn func(string) error) tender.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 FuncASRFF

func FuncASRFF(fn func(string) (float64, float64)) tender.CallableFunc

func FuncASRI

func FuncASRI(fn func(string) int) tender.CallableFunc

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

func FuncASRIE

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

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

func FuncASRS

func FuncASRS(fn func(string) string) tender.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)) tender.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) tender.CallableFunc

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

func FuncASRYE

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

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

func FuncASSIRSs

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

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

func FuncASSRB

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

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

func FuncASSRE

func FuncASSRE(fn func(string, string) error) tender.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) tender.CallableFunc

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

func FuncASSRS

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

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

func FuncASSRSs

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

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

func FuncASsSRS

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

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

func FuncATRE

func FuncATRE(fn func(time.Time) error) tender.CallableFunc

func FuncAYFRE

func FuncAYFRE(fn func([]byte, float64) error) tender.CallableFunc

func FuncAYI64RIE

func FuncAYI64RIE(fn func([]byte, int64) (int, error)) tender.CallableFunc

func FuncAYRIE

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

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

func FuncAYRS

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

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

func FuncAf64iiR

func FuncAf64iiR(fn func(float64, int, int)) tender.CallableFunc

func FuncAuIR

func FuncAuIR(fn func(uint)) tender.CallableFunc

FuncAIR transform a function of 'func(uint)' signature into CallableFunc type.

func GetModuleMap

func GetModuleMap(names ...string) *tender.ModuleMap

GetModuleMap returns the module map that includes all modules for the given module names.

Types

type Gob

type Gob struct {
	Value tender.Object
}

type IOReader

type IOReader struct {
	tender.ObjectImpl
	Value io.Reader
}

func (*IOReader) Copy

func (p *IOReader) Copy() tender.Object

func (*IOReader) IndexGet

func (o *IOReader) IndexGet(index tender.Object) (res tender.Object, err error)

func (*IOReader) String

func (p *IOReader) String() string

func (*IOReader) TypeName

func (p *IOReader) TypeName() string

type IOWriter

type IOWriter struct {
	tender.ObjectImpl
	Value io.Writer
}

func (*IOWriter) Copy

func (p *IOWriter) Copy() tender.Object

func (*IOWriter) IndexGet

func (o *IOWriter) IndexGet(index tender.Object) (res tender.Object, err error)

func (*IOWriter) String

func (p *IOWriter) String() string

func (*IOWriter) TypeName

func (p *IOWriter) TypeName() string

TypeName returns the name of the type.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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