func (c businessCalendar) closestBusinessDay(origin date.Date, forwards bool) date.Date {
	shift := -1
	if forwards {
		shift = 1
	}

	for current := origin; ; current = current.Add(shift) {
		if c.isBusinessDay(current) {
			return current
		}
	}
}
// businessDayAfter finds the closest business day
// (forwards or backwards) to an origin date.
businessDayAfter finds the closest business day
(forwards or backwards) to an origin date.
// businessDayAfter finds the closest business day // ( forwards or backwards ) to an origin date .
func (c businessCalendar) closestBusinessDay(origin date.Date, forwards bool) date.Date {
	shift := -1
	if forwards {
		shift = 1
	}
	for current := origin; ; current = current.Add(shift) {
		if c.isBusinessDay(current) {
			return current
		}
	}
}
func ( c businessCalendar ) closestBusinessDay ( origin date . Date , forwards bool ) date . Date { shift := - 1 if forwards { shift = 1 } for current := origin ; ; current = current . Add ( shift ) { if c . isBusinessDay ( current ) { return current } } }
businessDayAfter finds the closest business day
(forwards or backwards) to an origin date.
businessDayAfter finds the closest business day ( forwards or backwards ) to an origin date .