xnet

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetInternetIP

func GetInternetIP() string

func GetLocIP

func GetLocIP() string

获取本机IP

func IP_int2str

func IP_int2str(ipnr int64) string

ip地址int转string

func IP_str2int

func IP_str2int(ipnr string) int64

ip地址string转int

func IpBetween

func IpBetween(from net.IP, to net.IP, test net.IP) bool

判断ip地址区间

func IsInternetIP

func IsInternetIP(ip string) bool

判断是否是公网ip

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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