This template repository will help you getting started with authoring a wasm component using TinyGo / Go!
TinyGo 0.27
Go 1.20
wasm-tools 1.0.28
- cargo-component 2101df558d
wit-bindgen-cli
tag "wit-bindgen-0.4.0"
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
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.
To test the app, run the following command:
curl -X GET http://localhost:3001
This repo follows the component model compatibility matrix.