ip

package
v2.0.7 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2022 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 string

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

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

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