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

Method MapLen

model/value_map.go:233–239  ·  view source on GitHub ↗

MapLen returns the length of the slice.

()

Source from the content-addressed store, hash-verified

231
232// MapLen returns the length of the slice.
233func (v *Value) MapLen() (int, error) {
234 keys, err := v.MapKeys()
235 if err != nil {
236 return 0, err
237 }
238 return len(keys), nil
239}

Callers 2

LenMethod · 0.95
TestValue_MapLenFunction · 0.95

Calls 1

MapKeysMethod · 0.95

Tested by 1

TestValue_MapLenFunction · 0.76