🚧 this is a work in progress
This SDK allows to create and manage WebAssembly modules for host applications using the Capsule Host Application SDK.
The Capsule Host SDK use the Wazero runtime to run the host application.
package main
import (
capsule "github.com/bots-garden/capsule-module-sdk"
)
func main() {
capsule.SetHandle(Handle)
}
// Handle function
func Handle(param []byte) ([]byte, error) {
capsule.Log("🟣 from the plugin: " + string(param))
capsule.Print("💜 from the plugin: " + string(param))
return []byte("Hello " + string(param)), nil
}
👀 https://github.com/bots-garden/capsule-host-sdk#capsule-host-sdk