log.Printf("Warning: Merging destination map for chart '%s'. Overwriting table item '%s', with non table value: %v",chartName,key,dv)
rv[key]=dv
case!srcIsTable&&dstIsTable:
log.Printf("Warning: Merging destination map for chart '%s'. The destination item '%s' is a table and ignoring the source '%s' as it has a non-table value of: %v",chartName,key,key,val)
continue
}elseif!ok{// <- ok is still in scope from preceding conditional.
dst[key]=val
continue
rv[key]=dv
default:// neither are tables, simply take the dst value
rv[key]=dv
}
}
// never return a nil value, rather delete the key
fork,v:=rangedst{
ifv==nil{
delete(dst,k)
// do we have anything in dst that wasn't processed already that we need to copy across?
forkey,val:=rangedst{
ifval==nil{
continue
}
_,ok:=rv[key]
if!ok{
rv[key]=val
}
}
returndst
returnrv
}
// ReleaseOptions represents the additional release options needed