net

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsIPV6

func IsIPV6(ip _net.IP) bool

IsIPV6 checks if the input contains a valid IPV6 address

func IsPortAvailable

func IsPortAvailable(p int) bool

IsPortAvailable checks if a TCP port is available or not

func ParseIPNets

func ParseIPNets(specs ...string) (IPNet, IP, error)

ParseIPNets parses string slice to IPNet.

Types

type IP

type IP map[string]net.IP

IP maps string to net.IP.

type IPNet

type IPNet map[string]*net.IPNet

IPNet maps string to net.IPNet.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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