Skip to content

Instantly share code, notes, and snippets.

@jordanorelli
Created June 12, 2012 21:29
Show Gist options
  • Save jordanorelli/2920248 to your computer and use it in GitHub Desktop.
Save jordanorelli/2920248 to your computer and use it in GitHub Desktop.
package main
import (
"fmt"
"time"
)
func chatter() {
for {
fmt.Println(time.Now())
time.Sleep(1e9)
}
}
func main() {
go chatter()
<-make(chan bool)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment