Skip to content

Instantly share code, notes, and snippets.

@kimitoboku
Created May 3, 2014 07:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kimitoboku/11492975 to your computer and use it in GitHub Desktop.
Save kimitoboku/11492975 to your computer and use it in GitHub Desktop.
A Tour of GO#17
package main
import (
"fmt"
)
func main() {
sum := 0
for i := 0; i < 10; i++ {
sum += i
}
fmt.Println(sum)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment