//
pkg.gl
Category
github.com/smart-echo/micro
util
addr
package
0.0.0-20240731115241-c935d0647514
Repository:
https://github.com/smart-echo/micro.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
2
Dependents
4
Files
149 SLOC
#
Functions
Extract
Extract returns a valid IP address.
IPs
IPs returns all available interface IP addresses.
IsLocal
IsLocal checks whether an IP belongs to one of the device's interfaces.
#
Variables
ErrIPNotFound
ErrIPNotFound no IP address found, and explicit IP not provided.