mirror of
https://gitee.com/johng/gf.git
synced 2024-12-03 20:58:47 +08:00
18 lines
215 B
Go
18 lines
215 B
Go
package main
|
|
|
|
import (
|
|
"github.com/gogf/gf/container/garray"
|
|
"github.com/gogf/gf/frame/g"
|
|
)
|
|
|
|
func main() {
|
|
a := garray.NewIntArray()
|
|
a.Append(1, 2, 3)
|
|
|
|
v := a.Slice()
|
|
v[0] = 4
|
|
|
|
g.Dump(a.Slice())
|
|
g.Dump(v)
|
|
}
|