ip

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertToIntIP

func ConvertToIntIP(ip string) (int, error)

func SameIpAddress

func SameIpAddress(addr1, addr2 *IpAddress) bool

func SameIpAddressOfIP

func SameIpAddressOfIP(ip1, ip2 string) bool

Types

type IntIP

type IntIP struct {
	IP    string
	Intip int
}

func (*IntIP) String

func (self *IntIP) String() string

func (*IntIP) ToIntIp

func (self *IntIP) ToIntIp() (int, error)

func (*IntIP) ToString

func (self *IntIP) ToString() (string, error)

type IpAddress

type IpAddress struct {
	Mask string
	Addr int
}

func GetIpAddress

func GetIpAddress(ip string) *IpAddress

Jump to

Keyboard shortcuts

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