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

Add clone function

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