Original post

Sleeping, or waiting in , is part of the time package. It’s a very simple process, all you need to do is specify the duration to sleep for, which in this case is a number followed by it’s unit, so 2*time.Second means 2 seconds. This will sleep the current goroutine so other routines will continue to run.
package main import ( “fmt” “time” ) func main() { fmt.Printf(“Current Unix Time: %vn”, time.