Versions in this module Expand all Collapse all v0 v0.0.10 Mar 15, 2023 Changes in this version + type IPContainer struct + IPRanges []*IPRange + func NewIPContainer(ipStr string) (*IPContainer, error) + func (b *IPContainer) AllToLong() []uint32 + func (b *IPContainer) AllToStr() []string + func (b *IPContainer) Count() int + func (b *IPContainer) Do(fn func(ipRange *IPRange) bool) + func (b *IPContainer) Include(ipStr string) (bool, error) + type IPRange struct + End uint32 + Start uint32 + func (b *IPRange) Count() int + func (b *IPRange) Do(fn func(uint32) bool) + func (b *IPRange) End2IP() string + func (b *IPRange) GetAllIPToInt() []uint32 + func (b *IPRange) GetAllIPToStr() []string + func (b *IPRange) Include(ip uint32) bool + func (b *IPRange) IncludeRange(sIP, eIP uint32) bool + func (b *IPRange) Start2IP() string