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:
parent
9dc7cb7b36
commit
717ed11ee0
2 changed files with 3 additions and 3 deletions
2
new.go
2
new.go
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue