load

package
v0.0.0-...-3940e3f Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2021 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Intepret

func Intepret(m *wasm.Module) (exec.ModuleDefinition, error)

func LoadFile

func LoadFile(path string) (*wasm.Module, error)

func LoadModule

func LoadModule(r io.Reader) (*wasm.Module, error)

Types

type FSResolver

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

func NewFSResolver

func NewFSResolver(fs fs.FS, definitionFunc ModuleDefinitionFunc) *FSResolver

func (*FSResolver) ResolveModule

func (r *FSResolver) ResolveModule(name string) (exec.ModuleDefinition, error)

type ModuleDefinitionFunc

type ModuleDefinitionFunc func(m *wasm.Module) (exec.ModuleDefinition, error)

Jump to

Keyboard shortcuts

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