Files
byre/internal/api/deref.go
T

10 lines
98 B
Go

package api
func Deref[T any](p *T) T {
var zero T
if p == nil {
return zero
}
return *p
}