1
0
Fork 0
hacks/pointer/pointer.go

8 lines
161 B
Go
Raw Permalink Normal View History

2024-02-09 06:20:42 +00:00
// The pointer package contains utilities for working with pointers.
package pointer
// Of returns pointer to provided v.
func Of[T any](v T) *T {
return &v
}