utilNetwork

package
v0.0.0-...-f25d982 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IpInCidr

func IpInCidr(ip string, cidr string) bool

func IsPublicIP

func IsPublicIP(ip net.IP) bool

Types

type UtilNet

type UtilNet struct {
	// contains filtered or unexported fields
}

func NewUtilNet

func NewUtilNet(cidr string) (utilNet *UtilNet, err error)

func (*UtilNet) GetIpByPosition

func (un *UtilNet) GetIpByPosition(position ...uint32) string

func (*UtilNet) GetIpByPositionReverse

func (un *UtilNet) GetIpByPositionReverse(position ...uint32) string

func (*UtilNet) GetNetMask

func (un *UtilNet) GetNetMask() string

Jump to

Keyboard shortcuts

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