apps/hello: fix loop variable captured by func literal

Signed-off-by: Dan Kortschak <dan@kortschak.io>
This commit is contained in:
Dan Kortschak
2019-07-12 08:01:59 +09:30
committed by Elias Naur
parent 96b52d3493
commit 3c2c404fa9
+1
View File
@@ -32,6 +32,7 @@ func main() {
func init() {
go func() {
for w := range app.Windows() {
w := w
go func() {
if err := loop(w); err != nil {
log.Fatal(err)