package main import ( "fmt2" ) func add(a int, b int, c int) { assert(a + b == c) fmt2.Println(a, "+", b, "=", c) } func main() { go fmt2.Println("hello world?") i := 1 j := 2 n := 888 go add(i, j, 3) go func() { n = 666 assert(n == 666) fmt2.Println("----- n = ", n); }() assert(n == 888) fmt2.Println("before waiting... n = ", n); for i := 1; i <= 10000; i++ { } assert(n == 666) fmt2.Println("after waiting... n = ", n); k := i + j assert(k == 3) }