import "github.com/egdaemon/eg/runtime/wasi/egunsafe/ffiegvm"

Package ffiegvm asks the host to run a module in a virtual machine whose root is an egiso.

func Run

func Run(ctx context.Context, location string, toc string, modulepath string, environ ...string) error

Run runs the module at modulepath in a machine whose root is the egiso at location, pinned to toc, the digest of its table of contents, with environ added to its environment.

⬤