// DurationWithDefault returns *v if v is not nil. Otherwise it returns d.
DurationWithDefault returns *v if v is not nil. Otherwise it returns d.
// DurationWithDefault returns * v if v is not nil . Otherwise it returns d .
func DurationWithDefault(v *time.Duration, d time.Duration) time.Duration {
	if v == nil {
		return d
	}
	return *v
}
func DurationWithDefault ( v * time . Duration , d time . Duration ) time . Duration { if v == nil { return d } return * v }
DurationWithDefault returns *v if v is not nil.
DurationWithDefault returns * v if v is not nil .