Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/TomWright/dasel
/ Copy
Method
Copy
model/value.go:345–352 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
343
}
344
345
func
(v *Value) Copy() (*Value, error) {
346
switch
v.Type() {
347
case
TypeMap:
348
return
v.MapCopy()
349
default:
350
return
nil, fmt.Errorf(
"copy not supported for type: %s"
, v.Type())
351
}
352
}
Callers
2
TestValue_Copy
Function · 0.95
decodeHCLBlock
Method · 0.45
Calls
2
Type
Method · 0.95
MapCopy
Method · 0.95
Tested by
1
TestValue_Copy
Function · 0.76