You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
func main() {
fmt.Println("Starting Go sleep test in infinite loop...")
for {
fmt.Println("Sleeping for 2 seconds...")
time.Sleep(2 * time.Second)
fmt.Println("Awake!")
}
}
The text was updated successfully, but these errors were encountered:
Below is the program i tried.
package main
import (
"fmt"
"time"
)
func main() {
fmt.Println("Starting Go sleep test in infinite loop...")
for {
fmt.Println("Sleeping for 2 seconds...")
time.Sleep(2 * time.Second)
fmt.Println("Awake!")
}
}
The text was updated successfully, but these errors were encountered: