// +build OMIT | |
package main | |
import ( | |
"fmt" | |
"math/rand" | |
"time" | |
) | |
func main() { | |
go boring("boring!") // HL | |
} | |
// STOP OMIT | |
func boring(msg string) { | |
for i := 0; ; i++ { | |
fmt.Println(msg, i) | |
time.Sleep(time.Duration(rand.Intn(1e3)) * time.Millisecond) | |
} | |
} |