ipversion

package
v0.0.0-...-20ac110 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2024 License: MIT Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidIPVersion = errors.New("invalid IP version")

Functions

This section is empty.

Types

type IPVersion

type IPVersion uint8
const (
	IP4or6 IPVersion = iota
	IP4
	IP6
)

func Parse

func Parse(s string) (version IPVersion, err error)

func (IPVersion) String

func (v IPVersion) String() string

Jump to

Keyboard shortcuts

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