c9a9cef9ae
This PR deprecates some functions in favor of generic alternatives. The new functions are compatible only with Nomad v1.4+. The old functions (nor their use) should not be removed until Nomad v1.6+.
8 lines
154 B
Go
8 lines
154 B
Go
// Package pointer provides helper functions related to Go pointers.
|
|
package pointer
|
|
|
|
// Of returns a pointer to a.
|
|
func Of[A any](a A) *A {
|
|
return &a
|
|
}
|