Documentation ¶ Index ¶ func GetLocal() string func HostHasIP(ipStr string) bool Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func GetLocal ¶ func GetLocal() string GetLocal returns the non loopback local IP of the host func HostHasIP ¶ func HostHasIP(ipStr string) bool HostHasIP returns true if any of the networking interfaces on this device match the given ip address. In other words, it return true if the given ip belongs to the current machine Types ¶ This section is empty. Source Files ¶ View all Source files ip.go Click to show internal directories. Click to hide internal directories.