addr

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2016 License: BSD-2-Clause, MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IPs

func IPs(addrs []net.Addr) ([]net.IP, error)

IPs takes a list of network addresses and returns its list of IPs.

func IsIPv4

func IsIPv4(addr net.Addr) bool

IsIPv4 takes a network address and checks if the address is an IPv4 address.

func Partition

func Partition(addrs []net.Addr) ([]net.Addr, []net.Addr)

Partition takes a list of network addresses and partitions them into v4 and v6 addresses.

Types

This section is empty.

Jump to

Keyboard shortcuts

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