go_iprange

package
v0.0.0-...-accfc52 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

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

Jump to

Keyboard shortcuts

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