go-hello-world/hello.go

18 lines
344 B
Go
Raw 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: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)
}