ip

package
Version: v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

*------------------------------------------------------------**

* @filename ip/
* @author   jinycoo
* @version  1.0.0
* @date     2019-09-09 17:10
* @desc     ip -
**------------------------------------------------------------*

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Ip2long

func Ip2long(ip string) uint32

Ip2long converts ip address to an uint32 integer.

func IpIntToString

func IpIntToString(ipInt int) string

func IsIpV4

func IsIpV4(ip string) (b bool)

判断是否为ipV4

func IsPublicIP

func IsPublicIP(IP net.IP) bool

func Long2ip

func Long2ip(long uint32) string

Long2ip converts an uint32 integer ip address to its string type address.

func StringIpToInt

func StringIpToInt(ipstring string) int

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL