Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/rilldata/rill
/ valOrDefault
Function
valOrDefault
admin/server/projects.go:2418–2423 ·
view source on GitHub ↗
(ptr *T, def T)
Source
from the content-addressed store, hash-verified
2416
}
2417
2418
func
valOrDefault[T any](ptr *T, def T) T {
2419
if
ptr != nil {
2420
return
*ptr
2421
}
2422
return
def
2423
}
Callers
13
UpdateUserPreferences
Method · 0.70
SudoUpdateUserQuotas
Method · 0.70
AddProjectMemberUsergroup
Method · 0.70
SetProjectMemberUsergroupRole
Method · 0.70
CreateManagedGitRepo
Method · 0.70
UpdateProject
Method · 0.70
AddProjectMemberUser
Method · 0.70
SetProjectMemberUserRole
Method · 0.70
SudoUpdateOrganizationBillingCustomer
Method · 0.70
updateQuotasAndHandleBillingIssues
Method · 0.70
UpdateService
Method · 0.70
UpdateOrganization
Method · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected