iputils

package
v0.0.0-...-1058f7e Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2016 License: MIT Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsIP

func IsIP(s string) bool

IsIP tells if a string is an IP address.

func IsIPv4

func IsIPv4(s string) bool

IsIPv4 tells if a string is an IPv4 address.

func IsIPv6

func IsIPv6(s string) bool

IsIPv6 tells if a string is an IPv6 address.

func IsLocalIP

func IsLocalIP(ip net.IP) bool

IsLocalIP tells if an IP address is not forwardable across networks.

func ParseIP

func ParseIP(s string) (ip net.IP, isIPv4 bool)

ParseIP is a wrapper around net.ParseIP and net.IP.To4

Types

This section is empty.

Jump to

Keyboard shortcuts

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