Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetIPv4Addr ¶
func GetIPv4Addr(conf *config.NetIPConfig) (result string, err error)
GetIPv4Addr 获得IPv4地址
func GetIPv6Addr ¶
func GetIPv6Addr(conf *config.NetIPConfig) (result string, err error)
GetIPv6Addr 获得IPv6地址
func GetNetInterface ¶
func GetNetInterface(interfaceName string) (ipv4NetInterfaces []NetInterface, ipv6NetInterfaces []NetInterface, err error)
GetNetInterface 获得网卡地址 (返回ipv4, ipv6地址)
Types ¶
Click to show internal directories.
Click to hide internal directories.