Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetIPv4Addr ¶
func GetIPv4Addr(conf *config.NetIPConfig) (ipv4Result string)
GetIPv4Addr 获得IPv4地址
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.