draw2d/cmd/test.go
Laurent Le Goff 4f2224f730 refactoring
2011-03-17 22:33:08 +01:00

15 lines
203 B
Go

package main
import (
"fmt"
)
func main() {
toto := make([]int, 2, 2)
toto[0] = 1
toto[1] = 2
fmt.Printf("%v\n", toto)
toto = toto[0:0]
fmt.Printf("%v\n", toto)
fmt.Printf("%v\n", cap(toto))
}