| // Copyright 2011 The Go Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style |
| // license that can be found in the LICENSE file. |
| fmt.Printf("The call took %v to run.\n", t1.Sub(t0)) |
| case <-time.After(5 * time.Minute): |
| time.Sleep(100 * time.Millisecond) |
| func statusUpdate() string { return "" } |
| c := time.Tick(1 * time.Minute) |
| fmt.Printf("%v %s\n", now, statusUpdate()) |
| _, month, day := time.Now().Date() |
| if month == time.November && day == 10 { |
| fmt.Println("Happy Go day!") |
| // Go launched at Tue Nov 10 15:00:00 -0800 PST 2009 |
| t := time.Date(2009, time.November, 10, 23, 0, 0, 0, time.UTC) |
| fmt.Printf("Go launched at %s\n", t.Local()) |