Code
Hub
Trending
Following
Digest
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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.
11
func
Ref[T any](v T) *T {
12
return
&v
13
}
14
15
// NilOrEmpty returns true if s is nil or the empty string.
16
func
NilOrEmpty(s *string) bool {
Callers
15
provisionerDaemons
Method · 0.92
TestWorkspaceAgentAppStatus_ActivityBump
Function · 0.92
TestUserTailnetTelemetry
Function · 0.92
TestListChats
Function · 0.92
TestWatchChats
Function · 0.92
TestListChatProviders
Function · 0.92
TestCreateChatProvider
Function · 0.92
TestUpdateChatProvider
Function · 0.92
TestUserChatProviderConfigs
Function · 0.92
TestUpsertUserChatProviderKey
Function · 0.92
TestUpdateChatModelConfig
Function · 0.92
TestGetChat
Function · 0.92
Calls
no outgoing calls
Tested by
15
TestWorkspaceAgentAppStatus_ActivityBump
Function · 0.74
TestUserTailnetTelemetry
Function · 0.74
TestListChats
Function · 0.74
TestWatchChats
Function · 0.74
TestListChatProviders
Function · 0.74
TestCreateChatProvider
Function · 0.74
TestUpdateChatProvider
Function · 0.74
TestUserChatProviderConfigs
Function · 0.74
TestUpsertUserChatProviderKey
Function · 0.74
TestUpdateChatModelConfig
Function · 0.74
TestGetChat
Function · 0.74
TestPatchChat
Function · 0.74