net/ip.go
func (n NetworkNumber) Previous() NetworkNumber {
	newIP := make(NetworkNumber, len(n))
	copy(newIP, n)
	for i := len(newIP) - 1; i >= 0; i-- {
		newIP[i]--
		if newIP[i] < math.MaxUint32 {
			break
		}
	}
	return newIP
}
func (n NetworkNumber) Previous() NetworkNumber {
	newIP := make(NetworkNumber, len(n))
	copy(newIP, n)
	for i := len(newIP) - 1; i >= 0; i-- {
		newIP[i]--
		if newIP[i] < math.MaxUint32 {
			break
		}
	}
	return newIP
}
func ( n NetworkNumber ) Previous ( ) NetworkNumber { newIP := make ( NetworkNumber , len ( n ) ) copy ( newIP , n ) for i := len ( newIP ) - 1 ; i >= 0 ; i -- { newIP [ i ] -- if newIP [ i ] < math . MaxUint32 { break } } return newIP }
// Previous returns the previous logical network number.
Previous returns the previous logical network number .