inet

package
v0.0.0-...-2083224 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func A2n

func A2n(ipnr net.IP) int64

A2n IP 转 int64

func Aton

func Aton(ip string) int64

Aton IP 转 int64

func IsBelong

func IsBelong(ip, cidr string) bool

IsBelong 判断是否属于IP段 IsBelong(`192.168.3.1`, `192.168.3.0/24`)

func Lower16BitPrivateIP

func Lower16BitPrivateIP() (uint16, error)

Lower16BitPrivateIP Lower16BitPrivateIP

func Ntoa

func Ntoa(ipnr int64) net.IP

Ntoa int64 转 IP

func PrivateIP2Lower16

func PrivateIP2Lower16() int64

PrivateIP2Lower16 PrivateIP2Lower16

Types

This section is empty.

Jump to

Keyboard shortcuts

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