prometheus-paperless-exporter/internal/ref/ref.go
Michael Hanselmann f2cc188833
Some checks failed
Run tests / test (push) Has been cancelled
Release / release (push) Has been cancelled
Initial commit
Signed-off-by: Michael Hanselmann <public@hansmi.ch>
2023-07-03 00:16:08 +02:00

8 lines
132 B
Go

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