Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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.
233
func
(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
Len
Method · 0.95
TestValue_MapLen
Function · 0.95
Calls
1
MapKeys
Method · 0.95
Tested by
1
TestValue_MapLen
Function · 0.76