Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/TomWright/dasel
/ NewMapValue
Function
NewMapValue
model/value_map.go:12–14 ·
view source on GitHub ↗
NewMapValue creates a new map value.
()
Source
from the content-addressed store, hash-verified
10
11
// NewMapValue creates a new map value.
12
func
NewMapValue() *Value {
13
return
NewValue(orderedmap.NewMap())
14
}
15
16
// IsMap returns true if the value is a map.
17
func
(v *Value) IsMap() bool {
Callers
15
TestMap
Function · 0.92
TestValue_Set
Function · 0.92
TestValue_Len
Function · 0.92
TestValue_IsScalar
Function · 0.92
TestValue_EqualTypeValue
Function · 0.92
TestValue_GoValue_AllTypes
Function · 0.92
TestValue_Type_AllTypes
Function · 0.92
TestValue_GoValue
Function · 0.92
nodesToValue
Function · 0.92
nodeToValue
Function · 0.92
TestWriter_SimpleScalars
Function · 0.92
TestWriter_BoolAndNull
Function · 0.92
Calls
2
NewMap
Function · 0.92
NewValue
Function · 0.85
Tested by
15
TestMap
Function · 0.74
TestValue_Set
Function · 0.74
TestValue_Len
Function · 0.74
TestValue_IsScalar
Function · 0.74
TestValue_EqualTypeValue
Function · 0.74
TestValue_GoValue_AllTypes
Function · 0.74
TestValue_Type_AllTypes
Function · 0.74
TestValue_GoValue
Function · 0.74
TestWriter_SimpleScalars
Function · 0.74
TestWriter_BoolAndNull
Function · 0.74
TestWriter_Slice
Function · 0.74
TestWriter_NestedMap
Function · 0.74