v1

package
v0.0.0-...-a0c03a0 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IP

type IP struct {
	// contains filtered or unexported fields
}

IP represents an IPv4 or IPv6 address.

func NewIP

func NewIP(ip string) (IP, error)

NewIP returns a new instance of IP.

func (IP) IsIPv4

func (ip IP) IsIPv4() bool

IsIPv4 validate that a given IP is an IPv4 address.

func (IP) IsIPv6

func (ip IP) IsIPv6() bool

IsIPv6 validate that a given IP is an IPv6 address.

func (IP) String

func (ip IP) String() string

String implements the fmt.Stringer interface.

Jump to

Keyboard shortcuts

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