runtime

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2018 License: MIT Imports: 8 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*Options)

func WithLog

func WithLog(writer io.Writer) Option

func WithLogLevel

func WithLogLevel(lvl logging.Level) Option

func WithParam

func WithParam(name string, value interface{}) Option

func WithParams

func WithParams(params map[string]interface{}) Option

type Options

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

func NewOptions added in v0.4.0

func NewOptions(setters []Option) *Options

func (*Options) WithContext added in v0.4.0

func (opts *Options) WithContext(parent context.Context) context.Context

type Program

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

func NewProgram

func NewProgram(src string, body core.Expression) (*Program, error)

func (*Program) MustRun

func (p *Program) MustRun(ctx context.Context, setters ...Option) []byte

func (*Program) Run

func (p *Program) Run(ctx context.Context, setters ...Option) (result []byte, err error)

func (*Program) Source

func (p *Program) Source() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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