mirror of
https://github.com/traefik/yaegi.git
synced 2026-06-01 18:37:56 +00:00
15 lines
152 B
Go
15 lines
152 B
Go
package main
|
|
|
|
import "fmt"
|
|
|
|
func main() {
|
|
v := []int{1, 2, 3}
|
|
for i := range v {
|
|
v = append(v, i)
|
|
}
|
|
fmt.Println(v)
|
|
}
|
|
|
|
// Output:
|
|
// [1 2 3 0 1 2]
|