wasm-nats-stream-client/main.go

15 lines
459 B
Go
Raw Normal View History

2024-12-05 23:30:02 +00:00
//go:generate go run github.com/bytecodealliance/wasm-tools-go/cmd/wit-bindgen-go generate --world hello --out gen ./wit
package main
import (
2024-12-05 23:36:10 +00:00
"gitea.rebus.ninja/lore/go-nats-client/gen/wasmcloud/messaging/handler"
2024-12-05 23:30:02 +00:00
)
func init() {
2024-12-05 23:36:10 +00:00
handler.Exports.HandleMessage = handleMessage
2024-12-05 23:30:02 +00:00
}
// 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() {}