package main
import (
"net/http"
"log"
)
func helloHandler(w http.ResponseWriter, r *http.Request) {
w.Write([]byte("Hello, TinyGo!"))
}
func main() {
mux := http.NewServeMux()
mux.HandleFunc("/", helloHandler)
log.Fatal(http.ListenAndServe(":8080", mux))
}
panic: runtime error at 0x0000000000233e7f: nil pointer dereference
error: failed to run compiled binary /tmp/tinygo1722875622/main: signal: aborted (core dumped)
tinygo run .