removed useless stuff

This commit is contained in:
Lorenzo Venerandi 2024-12-06 01:06:09 +01:00
parent ea8a3ee209
commit ca0df8edde

View File

@ -2,9 +2,6 @@
package main package main
import ( import (
"fmt"
"net/http"
"gitea.rebus.ninja/lore/go-nats-client/gen/wasmcloud/messaging/handler" "gitea.rebus.ninja/lore/go-nats-client/gen/wasmcloud/messaging/handler"
) )
@ -12,10 +9,6 @@ func init() {
handler.Exports.HandleMessage = handleMessage handler.Exports.HandleMessage = handleMessage
} }
func handleRequest(w http.ResponseWriter, r *http.Request) {
fmt.Fprintf(w, "Hello from Go!\n")
}
// Since we don't run this program like a CLI, the `main` function is empty. Instead, // 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. // we call the `handleRequest` function when an HTTP request is received.
func main() {} func main() {}