infinite loop



examples/infinite-loop/infinte_loop.go
package main

import (
    "fmt"
)

func main() {
    i := 0
    for {
        fmt.Println(i)
        i++
    }
}

...
285583
285584
285585
285586
285587
285588
^Csignal: interrupt