IPVersion

package
v19.10.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2019 License: Apache-2.0 Imports: 2 Imported by: 16

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Enum

type Enum int

Enum is an enum defining IP versions

const (
	//IPv4 is IP v4 version
	IPv4 Enum = 4
	//IPv6 is IP v6 version
	IPv6 Enum = 6
)

func (Enum) Is

func (version Enum) Is(str string) bool

Is checks the version of a IP address in string representaiton

Jump to

Keyboard shortcuts

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