ipx

package
v0.0.0-...-774e91b Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetClientIp

func GetClientIp() string

获取本机地址

func HadExist

func HadExist(ipList string, ip string) (ok bool, err error)

HadExist ipList 是用 | 分隔的字符串

func HasLocalIP

func HasLocalIP(ip net.IP) bool

HasLocalIP 检测 IP 地址是否是内网地址

func HasLocalIPAddr

func HasLocalIPAddr(ip string) bool

HasLocalIPAddr 检测 IP 地址字符串是否是内网地址

func JudgeIp

func JudgeIp(ip string) (ok bool)

JudgeIp 校验ip地址

func RemoteIp

func RemoteIp(req *http.Request) string

RemoteIp 获取本机的 ip 地址

func ToInt

func ToInt(ip string) int64

ToInt ip 转 10进制

func ToString

func ToString(ip int64) string

ToString 10进制 转 ip

Types

This section is empty.

Jump to

Keyboard shortcuts

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