wasm-nats-stream-client/main.go

15 lines
459 B
Go

//go:generate go run github.com/bytecodealliance/wasm-tools-go/cmd/wit-bindgen-go generate --world hello --out gen ./wit
package main
import (
"gitea.rebus.ninja/lore/go-nats-client/gen/wasmcloud/messaging/handler"
)
func init() {
handler.Exports.HandleMessage = handleMessage
}
// Since we don't run this program like a CLI, the `main` function is empty. Instead,
// we call the `handleRequest` function when an HTTP request is received.
func main() {}