MCPcopy Create free account
hub / github.com/CrunchyData/postgres-operator / Pointer

Function Pointer

internal/initialize/primitives.go:36–36  ·  view source on GitHub ↗

Pointer returns a pointer to v.

(v T)

Source from the content-addressed store, hash-verified

34
35// Pointer returns a pointer to v.
36func Pointer[T any](v T) *T { return &v }
37
38// Pointers returns a slice of pointers to the items in v.
39func Pointers[T any](v ...T) []*T {

Callers 15

TestGenerateUpgradeJobFunction · 0.92
TestGetMinAvailableFunction · 0.92
getMinAvailableFunction · 0.92
podConfigFilesFunction · 0.92
clusterYAMLFunction · 0.92

Calls

no outgoing calls

Tested by 10

TestGenerateUpgradeJobFunction · 0.74
TestGetMinAvailableFunction · 0.74
TestFromPointerFunction · 0.74
TestPointerFunction · 0.74
TestGetAutoGrowFromRepoFunction · 0.74