msemochkin

Untitled

Oct 17th, 2017
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Go 0.20 KB | None | 0 0
  1. package main
  2.  
  3. import "fmt"
  4. import "time"
  5.  
  6. func end() {
  7.     fmt.Println("END")
  8. }
  9.  
  10. func main() {
  11.     defer end()
  12.     for {
  13.         time.Sleep(1 * time.Second)
  14.         fmt.Println("tic")
  15.     }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment