Go Source:
package main import ( "fmt" "net/http" gotown "github.com/maxmcd/go-town" ) func main() { gotown.ListenAndServe(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { fmt.Fprintf(w, "Hello World") })) }
Built with:
deno run --allow-net --allow-run --allow-read \ "https://esm.town/v/maxm/compileAndUploadTinygoWasm?v=58"
https://maxm-tinygowasmhelloworld.web.val.run
https://esm.town/v/maxm/tinygoWasmHelloWorld
<script type="module" src="https://esm.town/v/maxm/tinygoWasmHelloWorld"></script>