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