MCPcopy Index your code
hub / github.com/coder/coder / Ref

Function Ref

coderd/util/ptr/ptr.go:11–13  ·  view source on GitHub ↗

Ref returns a reference to v.

(v T)

Source from the content-addressed store, hash-verified

9
10// Ref returns a reference to v.
11func Ref[T any](v T) *T {
12 return &v
13}
14
15// NilOrEmpty returns true if s is nil or the empty string.
16func NilOrEmpty(s *string) bool {

Callers 15

provisionerDaemonsMethod · 0.92
TestUserTailnetTelemetryFunction · 0.92
TestListChatsFunction · 0.92
TestWatchChatsFunction · 0.92
TestListChatProvidersFunction · 0.92
TestCreateChatProviderFunction · 0.92
TestUpdateChatProviderFunction · 0.92
TestGetChatFunction · 0.92

Calls

no outgoing calls

Tested by 15

TestUserTailnetTelemetryFunction · 0.74
TestListChatsFunction · 0.74
TestWatchChatsFunction · 0.74
TestListChatProvidersFunction · 0.74
TestCreateChatProviderFunction · 0.74
TestUpdateChatProviderFunction · 0.74
TestGetChatFunction · 0.74
TestPatchChatFunction · 0.74