This commit is contained in:
Nicolas Lepage 2020-05-28 23:51:54 +02:00
parent d2a15ef3d4
commit feec60fb35
No known key found for this signature in database
GPG Key ID: B0879E35E66D8F6F
2 changed files with 4 additions and 0 deletions

View File

@ -11,6 +11,8 @@ import (
var no = 1
func main() {
fmt.Println("Starting...")
http.HandleFunc("/hello", func(res http.ResponseWriter, req *http.Request) {
params := make(map[string]string)
if err := json.NewDecoder(req.Body).Decode(&params); err != nil {
@ -27,5 +29,7 @@ func main() {
wasmhttp.Serve(nil)
fmt.Println("Started")
select {}
}

Binary file not shown.