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

# Packages

Package leb128 provides functions for reading integer values encoded in the Little Endian Base 128 (LEB128) format: https://en.wikipedia.org/wiki/LEB128.
Package operators provides all operators used by WebAssembly bytecode, together with their parameter and return type(s).

# Functions

DecodeModule is the same as ReadModule, but it only decodes the module without initializing the index space or resolving imports.
EncodeModule writes a provided module to w using WASM binary encoding.
NewModule creates a new empty module.
ReadModule reads a module from the reader r.

# Constants

# Variables

# Structs

DataSegment describes a group of repeated elements that begin at a specified offset in the linear memory.
ElementSegment describes a group of repeated elements that begin at a specified offset.
ExportEntry represents an exported entry by the module.
Function represents an entry in the function index space of a module.
FunctionNames is a set of names for functions.
FunctionSig describes the signature of a declared function in a WASM module.
GlobalEntry declares a global variable.
GlobalVar describes the type and mutability of a declared global variable.
ImportEntry describes an import statement in a Wasm module.
InvalidImportError is returned when the export of a resolved module doesn't match the signature of its import declaration.
LocalNames is a set of local variable names for functions.
Module represents a parsed WebAssembly module: http://webassembly.org/docs/modules/.
ModuleName is the name of a module.
NameSection is a custom section that stores names of modules, functions and locals for debugging purposes.
RawSection is a declared section in a WASM module.
ResizableLimits describe the limit of a table or linear memory.
SectionCode describes the body for every function declared inside a module.
SectionData describes the initial values of a module's linear memory.
SectionElements describes the initial contents of a table's elements.
SectionExports declares the export section of a module.
SectionFunction declares the signature of all functions defined in the module (in the code section).
SectionGlobals defines the value of all global variables declared in a module.
SectionImports declares all imports that will be used in the module.
SectionMemories describes all linear memories used by a module.
SectionStartFunction represents the start function section.
SectionTables describes all tables declared by a module.
SectionTypes declares all function signatures that will be used in a module.
Table describes a table in a Wasm module.

# Interfaces

Import is an interface implemented by types that can be imported by a WebAssembly module.
NameSubsection is an interface for subsections of NameSection.
Section is a generic WASM section interface.

# Type aliases

BlockType represents the signature of a structured block.
ElemType describes the type of a table's elements.
External describes the kind of the entry being imported or exported.
NameMap maps an index of the entry to a name.
NameType is the type of name subsection.
ResolveFunc is a function that takes a module name and returns a valid resolved module.
SectionID is a 1-byte code that encodes the section code of both known and custom sections.
ValueType represents the type of a valid value in Wasm.