1
0
mirror of https://github.com/redis/go-redis.git synced 2025-07-29 17:41:15 +03:00

feat: support write the types of pointer of simple data types (#2745) (#2753)

Co-authored-by: ofekshenawa <104765379+ofekshenawa@users.noreply.github.com>
This commit is contained in:
Tong Zhaoqi
2023-10-31 13:17:22 +08:00
committed by GitHub
parent 81947daa8d
commit 15682e3227
3 changed files with 87 additions and 0 deletions

5
internal/util/type.go Normal file
View File

@ -0,0 +1,5 @@
package util
func ToPtr[T any](v T) *T {
return &v
}