Files
threshold/internal/util/pointer.go
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
235 B
Go
Raw Normal View History

// Copyright (c) HashiCorp, Inc.
2023-02-02 17:15:17 -08:00
// SPDX-License-Identifier: BUSL-1.1
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
}