MCPcopy Index your code
hub / github.com/google/go-github / Ptr

Function Ptr

github/github.go:2094–2096  ·  view source on GitHub ↗

Ptr is a helper routine that allocates a new T value to store v and returns a pointer to it.

(v T)

Source from the content-addressed store, hash-verified

2092// Ptr is a helper routine that allocates a new T value
2093// to store v and returns a pointer to it.
2094func Ptr[T any](v T) *T {
2095 return &v
2096}
2097
2098// Bool is a helper routine that allocates a new bool value
2099// to store v and returns a pointer to it.

Callers 15

mainFunction · 0.92
mainFunction · 0.92
getTreeFunction · 0.92
pushCommitFunction · 0.92
createPRFunction · 0.92
newTestServerFunction · 0.92
createSubscriptionFunction · 0.92
TestLicenses_ListIterFunction · 0.92
TestUsers_KeysFunction · 0.92
TestRepositories_CRUDFunction · 0.92

Calls

no outgoing calls