mirror of
https://github.com/traefik/yaegi.git
synced 2026-06-01 18:37:56 +00:00
12 lines
125 B
Go
12 lines
125 B
Go
package main
|
|
|
|
import "fmt"
|
|
|
|
func main() {
|
|
a := make([]int, 2, 7)
|
|
fmt.Println(a, len(a), cap(a))
|
|
}
|
|
|
|
// Output:
|
|
// [0 0] 2 7
|