/wit-bindgen-go-template

This template will help you start writing a wasm component in TinyGo / Go!

Primary LanguageRust

wit-bindgen-go-template

This template repository will help you getting started with authoring a wasm component using TinyGo / Go!

Prerequisites

Build App

The Go app is located in /app directory under the root of the repository. The app is built using TinyGo and the build script is provided in the Makefile.

To build the app, run the following command:

make build-go

To build js app, run the following command:

make install-js
make build-js

To build rs app, run the following command:

make build-rust

Run App

To run the app, run the following command:

make run

This will starts a local HTTP server listening on port 3001. You can access the app at http://localhost:3001.

Test App

To test the app, run the following command:

curl -X GET http://localhost:3001

Compatibility

This repo follows the component model compatibility matrix.