1
0
Fork 0

🧑‍💻 Created pointer package with Of util

This commit is contained in:
Maxim Lebedev 2024-02-09 07:11:25 +06:00
parent a78d935044
commit d0c1cfef1e
Signed by: toby3d
GPG Key ID: 1F14E25B7C119FC5
1 changed files with 6 additions and 0 deletions

6
pointer/pointer.go Normal file
View File

@ -0,0 +1,6 @@
package pointer
// Of returns pointer to provided v.
func Of[T any](v T) *T {
return &v
}