go-hello-world/hello.go

22 lines
401 B
Go

package main
import ( "fmt"
"time"
"runtime"
)
func main(){
duration := time.Second
durMin := time.Minute
fmt.Println("Hello World! 0")
time.Sleep(duration)
fmt.Println("Hello World! 1")
time.Sleep(duration)
fmt.Println("Hello World! 2")
time.Sleep(duration)
fmt.Printf("Hello from: %s %s\n",runtime.GOOS,runtime.GOARCH)
time.Sleep(durMin)
}
// testing