Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetIntranetIp ¶
GetIntranetIp retrieves and returns the first intranet ip of current machine.
func GetIntranetIpArray ¶
GetIntranetIpArray retrieves and returns the intranet ip list of current machine.
func GetIpArray ¶
GetIpArray retrieves and returns all the ip of current host.
func IsIntranet ¶
IsIntranet checks and returns whether given ip an intranet ip.
Local: 127.0.0.1 A: 10.0.0.0--10.255.255.255 B: 172.16.0.0--172.31.255.255 C: 192.168.0.0--192.168.255.255
func MustGetIntranetIp ¶
func MustGetIntranetIp() string
MustGetIntranetIp performs as GetIntranetIp, but it panics if any error occurs.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.