Created
June 12, 2012 21:29
-
-
Save jordanorelli/2920248 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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