mirror of
https://gitee.com/johng/gf.git
synced 2024-12-11 04:07:03 +08:00
18 lines
204 B
Go
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)
|
|
}
|