HOME/Articles/

Golang golang-for (snippet)

Article Outline

Go programming example 'golang-for'

golang-for

Golang beginners example: golang-for

package main

import "fmt"

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