# Functions
IPVersion tells if an IP address is IPv4 or IPv6.
ResolveIntfAddr takes the name of a network interface and IP version, and returns the first IP address of the interface that matches the specified IP version.
# Variables
InterfaceByName is a mocking point for net.InterfaceByName, used for tests.
# Interfaces
Addr is used for tests, allowing net.InterfaceByName to be mocked.