go-hello-world/hello.go

22 lines
401 B
Go
Raw Permalink Normal View History

package main
2021-05-22 21:16:08 -04:00
import ( "fmt"
"time"
2021-05-22 21:19:45 -04:00
"runtime"
2021-05-22 21:16:08 -04:00
)
func main(){
2021-05-22 21:16:08 -04:00
duration := time.Second
2021-05-22 21:37:01 -04:00
durMin := time.Minute
2021-05-22 21:17:29 -04:00
fmt.Println("Hello World! 0")
2021-05-22 21:16:08 -04:00
time.Sleep(duration)
2021-05-22 21:17:29 -04:00
fmt.Println("Hello World! 1")
time.Sleep(duration)
fmt.Println("Hello World! 2")
2021-05-22 21:19:45 -04:00
time.Sleep(duration)
fmt.Printf("Hello from: %s %s\n",runtime.GOOS,runtime.GOARCH)
2021-05-22 21:37:49 -04:00
time.Sleep(durMin)
}
2021-05-22 23:30:02 -04:00
// testing