builtins

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 24 Imported by: 2

Documentation

Overview

Package builtins defines a default set of built-in functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func All

func All(ctx context.Context, args ...object.Object) object.Object

func Any

func Any(ctx context.Context, args ...object.Object) object.Object

func Assert

func Assert(ctx context.Context, args ...object.Object) object.Object

func Bool

func Bool(ctx context.Context, args ...object.Object) object.Object

func Buffer

func Buffer(ctx context.Context, args ...object.Object) object.Object

func Builtins

func Builtins() map[string]object.Object

func Byte

func Byte(ctx context.Context, args ...object.Object) object.Object

func ByteSlice

func ByteSlice(ctx context.Context, args ...object.Object) object.Object

func Call

func Call(ctx context.Context, args ...object.Object) object.Object

func Chan added in v1.4.0

func Chan(ctx context.Context, args ...object.Object) object.Object

func Chr

func Chr(ctx context.Context, args ...object.Object) object.Object

func Chunk added in v1.6.0

func Chunk(ctx context.Context, args ...object.Object) object.Object

func Close added in v1.4.0

func Close(ctx context.Context, args ...object.Object) object.Object

func Coalesce added in v1.6.0

func Coalesce(ctx context.Context, args ...object.Object) object.Object

func Decode

func Decode(ctx context.Context, args ...object.Object) object.Object

func Delete

func Delete(ctx context.Context, args ...object.Object) object.Object

func Encode

func Encode(ctx context.Context, args ...object.Object) object.Object

func Error

func Error(ctx context.Context, args ...object.Object) object.Object

func Float

func Float(ctx context.Context, args ...object.Object) object.Object

func FloatSlice

func FloatSlice(ctx context.Context, args ...object.Object) object.Object

func GetAttr

func GetAttr(ctx context.Context, args ...object.Object) object.Object

func Hash added in v1.3.0

func Hash(ctx context.Context, args ...object.Object) object.Object

func Int

func Int(ctx context.Context, args ...object.Object) object.Object

func Iter

func Iter(ctx context.Context, args ...object.Object) object.Object

func Keys

func Keys(ctx context.Context, args ...object.Object) object.Object

func Len

func Len(ctx context.Context, args ...object.Object) object.Object

func List

func List(ctx context.Context, args ...object.Object) object.Object

func Make added in v1.4.0

func Make(ctx context.Context, args ...object.Object) object.Object

func Map

func Map(ctx context.Context, args ...object.Object) object.Object

func Ord

func Ord(ctx context.Context, args ...object.Object) object.Object

func RegisterCodec

func RegisterCodec(name string, codec *Codec) error

RegisterCodec registers a new codec

func Reversed

func Reversed(ctx context.Context, args ...object.Object) object.Object

func Set

func Set(ctx context.Context, args ...object.Object) object.Object

func Sorted

func Sorted(ctx context.Context, args ...object.Object) object.Object

func Spawn added in v1.4.0

func Spawn(ctx context.Context, args ...object.Object) object.Object

func Sprintf

func Sprintf(ctx context.Context, args ...object.Object) object.Object

func String

func String(ctx context.Context, args ...object.Object) object.Object

func Try

func Try(ctx context.Context, args ...object.Object) object.Object

func Type

func Type(ctx context.Context, args ...object.Object) object.Object

Types

type Codec

type Codec struct {
	Encode func(context.Context, object.Object) object.Object
	Decode func(context.Context, object.Object) object.Object
}

Codec contains an Encode and a Decode function

func GetCodec

func GetCodec(name string) (*Codec, error)

GetCodec retrieves a codec by its name

Jump to

Keyboard shortcuts

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