This commit is contained in:
Nicolas Lepage
2021-01-22 00:42:01 +01:00
parent 8369104f08
commit f475080c4a
4 changed files with 6 additions and 67 deletions

View File

@@ -1,6 +1,7 @@
package main
import (
"context"
"encoding/json"
"fmt"
"net/http"
@@ -24,5 +25,8 @@ func main() {
}
})
wasmhttp.ServeOnce(nil)
var release = wasmhttp.Serve(nil)
defer release()
<-context.Background().Done()
}

Binary file not shown.

View File

@@ -19,7 +19,7 @@
</script>
</head>
<body>
<label for="name">Name : </label><input id="name" value="World">
<label for="name">Name: </label><input id="name" value="World">
<button onclick="hello()">Hello</button>
</body>
</html>