Documentation
¶
Index ¶
- func AddrToIP(addr net.Addr) net.IP
- func CommonIPV4() (string, error)
- func CommonIPv6() (string, error)
- func ExternalIP() (net.IP, error)
- func ExternalIPStr() string
- func IPStrToUint32(ipStr string) uint32
- func IPv4ToUint32(ip net.IP) uint32
- func IPv4s() ([]net.IP, error)
- func IPv6s() ([]net.IP, error)
- func LocalIPv4s() ([]net.IP, error)
- func LocalIPv6s() ([]net.IP, error)
- func PrivateIPv4() (net.IP, error)
- func Uint32ToIPStr(ipInt uint32) string
- func Uint32ToIPv4(ipInt uint32) net.IP
- type StrAddr
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CommonIPV4 ¶
func ExternalIP ¶
func ExternalIPStr ¶ added in v1.7.14
func ExternalIPStr() string
func IPStrToUint32 ¶
func IPv4ToUint32 ¶
func LocalIPv6s ¶ added in v1.7.14
func PrivateIPv4 ¶ added in v1.7.14
func Uint32ToIPStr ¶
func Uint32ToIPv4 ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.