From b02419232760588f98c162d9a23b919124e77d8d Mon Sep 17 00:00:00 2001 From: Gabriel Aszalos Date: Tue, 7 Jul 2015 23:06:06 -0600 Subject: [PATCH] Simplify code Not sure if there was any purpose in having your version as it was, but this should simplify it. --- index.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/index.md b/index.md index 6025506d..b0e8aece 100644 --- a/index.md +++ b/index.md @@ -94,9 +94,7 @@ Goroutines are fully supported by GopherJS. The only restriction is that you nee ```go js.Global.Get("myButton").Call("addEventListener", "click", func() { - go func() { - someBlockingFunction() - }() + go someBlockingFunction() }) ```