🧑💻 Created pointer package with Of util
This commit is contained in:
parent
a78d935044
commit
d0c1cfef1e
|
@ -0,0 +1,6 @@
|
||||||
|
package pointer
|
||||||
|
|
||||||
|
// Of returns pointer to provided v.
|
||||||
|
func Of[T any](v T) *T {
|
||||||
|
return &v
|
||||||
|
}
|
Loading…
Reference in New Issue