Documentation
¶
Overview ¶
Package netutil provides methods for working with network
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAllIP ¶
func GetAllIP() []string
GetAllIP returns all IPv4 addresses
Example ¶
ips := GetAllIP() if len(ips) > 0 { fmt.Printf("All IPv4: %v\n", ips) }
Output:
func GetAllIP6 ¶
func GetAllIP6() []string
GetAllIP6 returns all IPv6 addresses
Example ¶
ips := GetAllIP6() if len(ips) > 0 { fmt.Printf("All IPv6: %v\n", ips) }
Output:
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.