Skip to content
Snippets Groups Projects
Commit f7b8601b authored by Jano Hendriks's avatar Jano Hendriks
Browse files

Add clone function: fixed

parent c6e824d4
Branches
Tags v1.189.0
No related merge requests found
......@@ -39,7 +39,7 @@ func DeepCopy(fromValue interface{}) (toValue interface{}) {
}
func Clone[T any](fromValue T) (toValue T) {
return deepcopy.Copy(fromValue)
return deepcopy.Copy(fromValue).(T)
}
func ValueToPointer[V any](value V) *V {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment