ip

package
v2.1.43 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// IPv4 is external address.
	IPv4 net.IP

	// IPv4lookback is lookback address.
	IPv4lookback = net.ParseIP("127.0.0.1")
)
View Source
var (
	// IPv6 is external address.
	IPv6 net.IP

	// IPv6lookback is lookback address.
	IPv6lookback = net.IPv6loopback
)

Functions

func FormatIP added in v2.0.7

func FormatIP(addr string) (string, bool)

FormatIP returns a valid textual representation of an IP address.

Types

This section is empty.

Jump to

Keyboard shortcuts

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