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

Method DeepCopy

container/gmap/gmap_hash_int_int_map.go:284–289  ·  view source on GitHub ↗

DeepCopy implements interface for deep copy of current type.

()

Source from the content-addressed store, hash-verified

282
283// DeepCopy implements interface for deep copy of current type.
284func (m *IntIntMap) DeepCopy() any {
285 m.lazyInit()
286 return &IntIntMap{
287 KVMap: m.KVMap.DeepCopy().(*KVMap[int, int]),
288 }
289}
290
291// IsSubOf checks whether the current map is a sub-map of `other`.
292func (m *IntIntMap) IsSubOf(other *IntIntMap) bool {

Callers

nothing calls this directly

Calls 2

lazyInitMethod · 0.95
DeepCopyMethod · 0.65

Tested by

no test coverage detected