mirror of
https://github.com/redis/go-redis.git
synced 2025-07-29 17:41:15 +03:00
Co-authored-by: ofekshenawa <104765379+ofekshenawa@users.noreply.github.com>
This commit is contained in:
5
internal/util/type.go
Normal file
5
internal/util/type.go
Normal file
@ -0,0 +1,5 @@
|
||||
package util
|
||||
|
||||
func ToPtr[T any](v T) *T {
|
||||
return &v
|
||||
}
|
Reference in New Issue
Block a user