7 lines
92 B
Go
7 lines
92 B
Go
package pointer
|
|
|
|
// Of returns pointer to provided v.
|
|
func Of[T any](v T) *T {
|
|
return &v
|
|
}
|