draw2d/postscript-go/cmd/test.go
Laurent Le Goff 46e58db597 refactoring
2011-03-17 22:31:41 +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))
}