iputil

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsLocal

func IsLocal(ip net.IP) bool

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

func Parse

func Parse(i uint) (net.IP, error)

Parse 将整数解析为 net.IP

func ToLong

func ToLong(ip net.IP) (uint, error)

ToLong 把 net.IP 转为整数

Types

This section is empty.

Jump to

Keyboard shortcuts

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