PracticeDev/study_go/exec/loop-forever/main.go

16 lines
146 B
Go

package main
import (
"fmt"
"time"
)
func main() {
i := 0
for {
fmt.Printf("loop forever...%d\n", i)
time.Sleep(time.Second)
i++
}
}