MCPcopy 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
2418func valOrDefault[T any](ptr *T, def T) T {
2419 if ptr != nil {
2420 return *ptr
2421 }
2422 return def
2423}

Calls

no outgoing calls

Tested by

no test coverage detected