blob: fa1d0f782df6f264e5c10f778c871b432b1cb0b7 [file] [log] [blame]
// +build ignore,OMIT
package main
import (
"fmt"
"time"
)
// START1 OMIT
func main() {
f("Hello, World", 500*time.Millisecond)
}
// STOP1 OMIT
// START2 OMIT
func f(msg string, delay time.Duration) {
for i := 0; ; i++ {
fmt.Println(msg, i)
time.Sleep(delay)
}
}
// STOP2 OMIT