stdlib

package
v0.0.0-...-66342f7 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2025 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Env

type Env struct {
	// contains filtered or unexported fields
}

func NewEnv

func NewEnv() *Env

func (*Env) AddContext

func (env *Env) AddContext(name string, val value.Value)

func (*Env) All

func (env *Env) All() iter.Seq2[value.Value, value.Value]

func (*Env) Attr

func (env *Env) Attr(name string) (value.Value, error)

func (*Env) Get

func (env *Env) Get(key value.Value) (value.Value, error)

func (*Env) Keys

func (env *Env) Keys() iter.Seq[value.Value]

func (*Env) Len

func (env *Env) Len() int

func (*Env) RegisterFunction

func (env *Env) RegisterFunction(fn ...Function)

func (*Env) Value

func (env *Env) Value() value.Value

func (*Env) Values

func (env *Env) Values() iter.Seq[value.Value]

func (*Env) WithMarks

func (env *Env) WithMarks(marks uint16) value.Mapper

type Function

type Function struct {
	Name   string
	Params []Param
	Impl   func(v ...value.Value) (value.Value, error)
}

func ExperimentalFunctions

func ExperimentalFunctions() []Function

func Functions

func Functions() []Function

func (*Function) Value

func (fn *Function) Value() value.Value

type Param

type Param struct {
	Name     string
	Kind     value.Kind
	Variadic bool
	Default  value.Value
}

Jump to

Keyboard shortcuts

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