gf/geg/container/gmap/gmap_map_safe.go
2019-04-03 00:03:46 +08:00

18 lines
204 B
Go

package main
import (
"github.com/gogf/gf/g"
"github.com/gogf/gf/g/container/gmap"
)
func main() {
m := gmap.New()
m.Set("1", "1")
m1 := m.Clone()
m1["2"] = "2"
g.Dump(m.Clone())
g.Dump(m1)
}