net

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseIP

func ParseIP(ip string) (ipv4s, ipv6s net.IP, err error)

ParseIP converts an IP address from a string into a either a IPv4 or a IPv6 net.IP. If the given 'ip' address is not valid, an error is returned.

func ParseIPs

func ParseIPs(ips []string) (ipv4s, ipv6s []net.IP, err error)

ParseIPs returns a slice of IPv4 and IPv6s. If any of the given IP strings are not a valid IP address, an error is returned.

Types

This section is empty.

Jump to

Keyboard shortcuts

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