mirror of
https://github.com/unknwon/the-way-to-go_ZH_CN.git
synced 2025-08-11 22:00:03 +08:00
13 lines
176 B
Go
Executable File
13 lines
176 B
Go
Executable File
package main
|
|
|
|
import "fmt"
|
|
|
|
func main() {
|
|
var arr [15]int
|
|
for i:=0; i < 15; i++ {
|
|
arr[i] = i
|
|
}
|
|
fmt.Println(arr) // [0 1 2 3 4 5 6 7 8 9 10 11 12 13 14]
|
|
|
|
|
|
} |