mirror of
https://gitee.com/johng/gf
synced 2026-06-08 02:27:42 +08:00
Implemented StrAnyMap Example
This commit is contained in:
@ -59,7 +59,7 @@ func ExampleStrAnyMap_Map() {
|
||||
fmt.Println("after n1:", n1)
|
||||
|
||||
// concurrent-safety, copy of underlying data
|
||||
m2 := gmap.New(true)
|
||||
m2 := gmap.NewStrAnyMap(true)
|
||||
m2.Set("key1", "val1")
|
||||
fmt.Println("m2:", m2)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user