scopes

package
v0.0.0-...-9bbed00 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Scope

type Scope struct {
	Values map[string]Value
}

func NewScope

func NewScope() *Scope

func (*Scope) Eval

func (s *Scope) Eval(ctx context.Context, name string) (interface{}, bool, error)

type Value

type Value struct {
	Value    any
	Function func() (any, error)
}

Jump to

Keyboard shortcuts

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