function

package
v0.174.0 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder struct {
	PackagePath string
}

func ForPackage

func ForPackage(name string) Builder

func (Builder) Register

func (b Builder) Register(name string, fn Definition)

func (Builder) RegisterContext added in v0.167.0

func (b Builder) RegisterContext(name string, fn DefinitionContext)

type Definition

type Definition func(args interpreter.Arguments) (values.Value, error)

type DefinitionContext added in v0.167.0

type DefinitionContext func(ctx context.Context, args interpreter.Arguments) (values.Value, error)

Jump to

Keyboard shortcuts

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