yaegi

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Overview

Package yaegi はYaegiを使ったGrowseページのRuntimeを実装する。

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Runtime

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

Runtime は1ページ専用のYaegiインタープリターである。

func New

func New() *Runtime

New は未ロードのYaegi Runtimeを生成する。

func (*Runtime) Load

func (r *Runtime) Load(ctx context.Context, scripts []runtimemodel.Script, environment runtimemodel.Environment) error

Load はスクリプトを検証し、実行せずにインタープリターを準備する。

func (*Runtime) Start

func (r *Runtime) Start(ctx context.Context) error

Start はロード済みの全ファイルを評価し、main.mainを一度呼び出す。

func (*Runtime) Stop

func (r *Runtime) Stop() error

Stop は実行中の処理を中止する。複数回呼び出しても安全である。

Jump to

Keyboard shortcuts

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