watm: WATM Builder Helper

Go Reference

We provide watm (GitHub Repository) as a helper library one can use to build WATM from WebAssembly-agnostic Go code. It would reduce a lot of boilerplate code and make the integration process much easier when you have an existing transport written in Go and does not want to customize the WATM’s behavior too much.

Currently, watm is still under active development and supports only TinyGo as the compiler.

tinygo/v0 package

Go Reference

The tinygo/v0 package provides a set of helper functions to build WATM with spec version 0 from WebAssembly-agnostic Go code. It is designed to be used with TinyGo.

tinygo/v0/net package

Go Reference

The tinygo/v0/net package simulates the standard net package in Go, and provides a set of helper functions to build WATM with spec version 0 from WebAssembly-agnostic Go code. It is designed to be used with TinyGo.

If you are using tinygo/v0 properly, then most likely you don’t have to interact with this package too much. However, more flexibility is provided here if you want to customize the behavior of the WATM.

Example

See Quick Start with WATM in Go for a quick example of using watm to build a WATM that reverses strings.