Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IpRangeLib ¶
type IpRangeLib struct { }
根据网络网段,获取该段所有IP 单例模式
var ( IpRangeInstance *IpRangeLib SyncOnce sync.Once )
func NewIpRangeLib ¶
func NewIpRangeLib() *IpRangeLib
func (*IpRangeLib) IpIntToString ¶
func (this *IpRangeLib) IpIntToString(ipInt int) string
将IP数值转成字符串类型 返回 字符类型IP
func (*IpRangeLib) IpRangeToIpList ¶
func (this *IpRangeLib) IpRangeToIpList(Ipaddr string) ([]string, error)
获取网段的IP地址列表 返回 IP列表+错误信息
func (*IpRangeLib) IpStringToInt ¶
func (this *IpRangeLib) IpStringToInt(ipString string) int
将IP字符串转成数值类型 返回 数值类型IP
Click to show internal directories.
Click to hide internal directories.