reface to openteam
This commit is contained in:
@@ -3,3 +3,9 @@ package utils
|
||||
func ToPtr[T any](v T) *T {
|
||||
return &v
|
||||
}
|
||||
|
||||
func UpdatePtrField[T any](target *T, value *T) {
|
||||
if value != nil {
|
||||
*target = *value
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user