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

Function ExampleStrAnyMap_String

container/gmap/gmap_z_example_str_any_test.go:594–608  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

592}
593
594func ExampleStrAnyMap_String() {
595 var m gmap.StrAnyMap
596 m.Sets(g.MapStrAny{
597 "k1": "v1",
598 })
599
600 fmt.Println(m.String())
601
602 var m1 *gmap.StrAnyMap = nil
603 fmt.Println(len(m1.String()))
604
605 // Output:
606 // {"k1":"v1"}
607 // 0
608}
609
610func ExampleStrAnyMap_MarshalJSON() {
611 var m gmap.StrAnyMap

Callers

nothing calls this directly

Calls 2

SetsMethod · 0.95
StringMethod · 0.95

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…