1
Fork 0
mirror of https://github.com/RGBCube/GoNew synced 2025-07-31 09:27:46 +00:00

Rename package to ptr

This commit is contained in:
RGBCube 2023-04-10 22:39:29 +03:00
parent 9dc7cb7b36
commit 717ed11ee0
2 changed files with 3 additions and 3 deletions

2
new.go
View file

@ -1,4 +1,4 @@
package new
package ptr
// New allocates the thing on the heap and returns a non-nil pointer to it.
func New[T any](thing T) *T {