code: func generateAddress(ordinal uint64, network *net.IPNet) net.IP {
  	var address [16]byte
  
  	// Get network portion of IP
  	if getAddressVersion(network.IP) == v4 {
  		copy(address[:], network.IP.To4())
  	} else {
  		copy(address[:], network.IP)
  	}
  
  	end := len(network.Mask)
  	addIntToIP(address[:end], ordinal)
  
  	return net.IP(address[:end])
  }
docs: // It generates the ip address in the passed subnet specified by
  // the passed host address ordinal