iprange

package
v0.0.0-...-cd4f2e8 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package iprange is to havdle ipranges, like 1.1.1.1-2.2.2.2 IPv6 supported, of course

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrIncorrectRange = errors.New("incorrect range")
)

Errors

Functions

func Merge

func Merge(begin net.IP, end net.IP) []*net.IPNet

Merge returns a range as a list of subnets, as compact as possible

Types

This section is empty.

Jump to

Keyboard shortcuts

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