Created
April 3, 2015 23:26
-
-
Save jbowens/b15399a7e722aafab509 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 main() { | |
timer := time.NewTicker(time.Second) | |
for now := range timer.C { | |
fmt.Printf("The time is %s\n", now) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment