12 lines
234 B
Go
12 lines
234 B
Go
// Copyright (c) HashiCorp, Inc.
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
package util
|
|
|
|
// Pointer is just a generic function to return a pointer of whatever type is
|
|
// given
|
|
func Pointer[T any](input T) *T {
|
|
ret := input
|
|
return &ret
|
|
}
|