wasi-module-sdk-go/examples/hello_world_go/main.go

18 lines
364 B
Go
Raw Normal View History

2023-05-08 13:21:31 +00:00
package main
//go:generate tinygo build -o hello_world.wasm -scheduler=none -gc=leaking --no-debug -target=wasi main.go
import (
2023-05-18 16:21:44 +00:00
sdk "code.icb4dc0.de/buildr/wasi-module-sdk-go"
2023-05-08 13:21:31 +00:00
"hello_world/module"
)
func init() {
sdk.Register(sdk.CategoryTask, "hello_world", sdk.ModuleFactoryFunc(func() sdk.Module {
return new(module.HelloWorld)
}))
}
func main() {
}