MCPcopy
hub / github.com/gogf/gf / ExampleStrStrMap_Clear

Function ExampleStrStrMap_Clear

container/gmap/gmap_z_example_str_str_test.go:416–431  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

414}
415
416func ExampleStrStrMap_Clear() {
417 var m gmap.StrStrMap
418 m.Sets(g.MapStrStr{
419 "k1": "v1",
420 "k2": "v2",
421 "k3": "v3",
422 "k4": "v4",
423 })
424
425 m.Clear()
426
427 fmt.Println(m.Map())
428
429 // Output:
430 // map[]
431}
432
433func ExampleStrStrMap_Replace() {
434 var m gmap.StrStrMap

Callers

nothing calls this directly

Calls 3

SetsMethod · 0.95
ClearMethod · 0.95
MapMethod · 0.95

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…