MCPcopy
hub / github.com/TomWright/dasel / IsMap

Method IsMap

model/value_map.go:17–19  ·  view source on GitHub ↗

IsMap returns true if the value is a map.

()

Source from the content-addressed store, hash-verified

15
16// IsMap returns true if the value is a map.
17func (v *Value) IsMap() bool {
18 return v.isStandardMap() || v.isDencodingMap()
19}
20
21func (v *Value) isStandardMap() bool {
22 return v.UnpackKinds(reflect.Interface, reflect.Pointer).Kind() == reflect.Map

Callers 15

TypeMethod · 0.95
LenMethod · 0.95
TestMapFunction · 0.80
WriteMethod · 0.80
writeMethod · 0.80
ensureMapAtFunction · 0.80
WriteMethod · 0.80
goTypeAndValueFunction · 0.80
addValueToBodyMethod · 0.80
valueToBlockMethod · 0.80
mapValuesExprExecutorFunction · 0.80
deepMergeMapFunction · 0.80

Calls 2

isStandardMapMethod · 0.95
isDencodingMapMethod · 0.95

Tested by 1

TestMapFunction · 0.64