Add func to get the pointer to some value

This commit is contained in:
Melody Becker 2024-07-07 16:00:08 +02:00
parent 70f6d19476
commit 83e935df8a

View file

@ -13,3 +13,7 @@ func Must[T any](val T, err error) T {
} }
return val return val
} }
func IntoPointer[T any](val T) *T {
return &val
}