Categorygithub.com/go-interpreter/wagon
modulepackage
0.6.0
Repository: https://github.com/go-interpreter/wagon.git
Documentation: pkg.go.dev

# README

wagon

Build Status codecov GoDoc

wagon is a WebAssembly-based interpreter in Go, for Go.

NOTE: wagon requires Go >= 1.9.x.

Purpose

wagon aims to provide tools (executables+libraries) to:

  • decode wasm binary files
  • load and execute wasm modules' bytecode.

wagon doesn't concern itself with the production of the wasm binary files; these files should be produced with another tool (such as wabt or binaryen.) wagon may provide a utility to produce wasm files from wast or wat files (and vice versa.)

The primary goal of wagon is to provide the building blocks to be able to build an interpreter for Go code, that could be embedded in Jupyter or any Go program.

Contributing

See the CONTRIBUTING guide for pointers on how to contribute to go-interpreter and wagon.

# Packages

Package disasm provides functions for disassembling WebAssembly bytecode.
Package exec provides functions for executing WebAssembly bytecode.
Package validate provides functions for validating WebAssembly modules.
Package wasm provides functions for reading and parsing WebAssembly modules.
Package wast implements a WebAssembly text format.