mirror of
https://gitee.com/johng/gf.git
synced 2024-12-05 05:37:55 +08:00
19 lines
243 B
Go
19 lines
243 B
Go
package main
|
|
|
|
import (
|
|
"gitee.com/johng/gf/g/container/garray"
|
|
"gitee.com/johng/gf/g"
|
|
)
|
|
|
|
|
|
func main () {
|
|
a := garray.NewIntArray(0, 0)
|
|
a.Append(1, 2, 3)
|
|
|
|
v := a.Slice()
|
|
v[0] = 4
|
|
|
|
g.Dump(a.Slice())
|
|
g.Dump(v)
|
|
}
|