// Duration returns *v if v is not nil. Otherwise it returns an empty duration.
Duration returns *v if v is not nil. Otherwise it returns an empty duration.
// Duration returns * v if v is not nil . Otherwise it returns an empty duration .
func Duration(v *time.Duration) time.Duration {
	var d time.Duration
	if v != nil {
		return *v
	}
	return d
}
func Duration ( v * time . Duration ) time . Duration { var d time . Duration if v != nil { return * v } return d }
Duration returns *v if v is not nil.
Duration returns * v if v is not nil .