prometheus-paperless-exporter/internal/ref/ref.go

9 lines
132 B
Go
Raw Permalink Normal View History

package ref
// Return a pointer to a value.
//
// https://github.com/golang/go/issues/45624
func Ref[T any](x T) *T {
return &x
}