tailscale/wasmtest/serve.go
Brad Fitzpatrick cd54f07bd9 wasm play
See:

* https://twitter.com/bradfitz/status/1450916922288005122
* https://twitter.com/bradfitz/status/1451423386777751561
* https://twitter.com/bradfitz/status/1457830780550275075

Updates #3157

Change-Id: I7f5a1b1bc1b8a4af0a700834c3fe09c8c791f6dc
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2022-05-19 15:56:36 -07:00

16 lines
210 B
Go

package main
import (
"log"
"net/http"
)
func main() {
log.Printf("listening on :9090")
err := http.ListenAndServe(":9090", http.FileServer(http.Dir(".")))
if err != nil {
log.Fatal(err)
return
}
}