package utils func ToPtr[T any](v T) *T { return &v } func UpdatePtrField[T any](target *T, value *T) { if value != nil { *target = *value } }