Loop
Infinite loop
sum := 0 for { sum++ // repeated forever fmt.Println(sum) }
Go do not support parallel for-loops , Sun's Fortress support it. But they are easy to implement using goroutines.[1]
#!/bin/bash while true; do ((var++)) echo $var done
See also
Advertising: