Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MergeIPNet ¶
MergeIPNet 对ip进行合并 see https://github.com/zhanhb/cidr-merger
Types ¶
type IRange ¶
type IRange interface { ToIp() net.IP // return nil if it can't be represented as a single ip ToIpNets() []*net.IPNet ToRange() *Range String() string }
func MergeIRange ¶
MergeIRange 对ip进行合并 see https://github.com/zhanhb/cidr-merger
type IpNetWrapper ¶
func (IpNetWrapper) String ¶
func (r IpNetWrapper) String() string
func (IpNetWrapper) ToIp ¶
func (r IpNetWrapper) ToIp() net.IP
func (IpNetWrapper) ToIpNets ¶
func (r IpNetWrapper) ToIpNets() []*net.IPNet
func (IpNetWrapper) ToRange ¶
func (r IpNetWrapper) ToRange() *Range
Click to show internal directories.
Click to hide internal directories.