github.com/graybobo/golang.org-package-offline-cache@v0.0.0-20200626051047-6608995c132f/x/talks/2012/concurrency/support/boring.go (about) 1 // +build OMIT 2 3 package main 4 5 import ( 6 "fmt" 7 "time" 8 ) 9 10 func main() { 11 boring("boring!") 12 } 13 14 // START OMIT 15 func boring(msg string) { 16 for i := 0; ; i++ { 17 fmt.Println(msg, i) 18 time.Sleep(time.Second) 19 } 20 } 21 // STOP OMIT