refactor: add Ptr function for easy inline pointer creation
This commit is contained in:
@@ -38,3 +38,7 @@ func ResultWrapb[T any](err error, val T) Result[T] {
|
||||
}
|
||||
return Err[T](err)
|
||||
}
|
||||
|
||||
func Ptr[T any](v T) *T {
|
||||
return &v
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user