net

package
v0.0.0-...-f26c881 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2018 License: Apache-2.0 Imports: 4 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 IsIPv6Enabled

func IsIPv6Enabled() bool

IsIPv6Enabled checks if IPV6 is enabled or not

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