addr

package
v0.0.0-...-23bf2d9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 21, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Extract

func Extract(addr string) (string, error)

Extract returns a real ip

func IsLocal

func IsLocal(addr string) bool

IsLocal tells us whether an ip is local

func IsPrivateIP

func IsPrivateIP(addr string) bool

func LocalIPs

func LocalIPs() (out []string)

LocalIPs returns all known ips

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL