refactor: add Ptr function for easy inline pointer creation

This commit is contained in:
2024-10-13 21:38:37 +02:00
parent ab8ce91181
commit 0431cfff78

View File

@@ -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
}