Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/coder/coder
/ NilOrZero
Function
NilOrZero
coderd/util/ptr/ptr.go:38–40 ·
view source on GitHub ↗
NilOrZero returns true if v is nil or 0.
(v *T)
Source
from the content-addressed store, hash-verified
36
37
// NilOrZero returns true if v is nil or 0.
38
func
NilOrZero[T number](v *T) bool {
39
return
v == nil || *v == 0
40
}
Callers
4
validWorkspaceTTLMillis
Function · 0.92
Test_NilOrZero
Function · 0.92
scheduleListRowFromWorkspace
Function · 0.92
notifyCondition
Function · 0.92
Calls
no outgoing calls
Tested by
1
Test_NilOrZero
Function · 0.74