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

Method String

container/gmap/gmap_hash_str_any_map.go:300–306  ·  view source on GitHub ↗

String returns the map as a string.

()

Source from the content-addressed store, hash-verified

298
299// String returns the map as a string.
300func (m *StrAnyMap) String() string {
301 if m == nil {
302 return ""
303 }
304 m.lazyInit()
305 return m.KVMap.String()
306}
307
308// MarshalJSON implements the interface MarshalJSON for json.Marshal.
309func (m StrAnyMap) MarshalJSON() ([]byte, error) {

Callers 2

ExampleStrAnyMap_StringFunction · 0.95

Calls 2

lazyInitMethod · 0.95
StringMethod · 0.65

Tested by 2

ExampleStrAnyMap_StringFunction · 0.76