package main import ( "fmt" "time" ) func main() { fmt.Println("Hello World!") fmt.Println("Testing the editor...") go test("is this bitches?", 1*time.Second) go test("whoa!", 5*time.Second) go test("bitches", 100*time.Millisecond) time.Sleep(1 * time.Minute) } func test(msg string, delay time.Duration) { c := time.Tick(1 * delay) for now := range c { fmt.Println(now.Unix(), msg) // blah blah blah } }