Forever

If you omit the loop condition it loops forever, so an infinite loop is compactly expressed.

forever.go

  1. package main
  2. func main() {
  3. for {
  4. }
  5. }