Documentation
¶
Overview ¶
Index ¶
- Constants
- func Base64Decode(str string) (string, error)
- func Base64Encode(str string) string
- func ExternalIP() (net.IP, error)
- func GetCidrIpRangeIP(cidr string) (firstIP, lastIP net.IP, err error)
- func GetCidrIpRangeString(cidr string) (_firstIP, _lastIP string, _err error)
- func GetCidrIpRangeUInt32(cidr string) (_firstIP, _lastIP uint32, _err error)
- func GetIpFromAddr(addr net.Addr) net.IP
- func GetIpIn() string
- func GetIpOut() string
- func GetIpsIn() (_ips []string)
- func GetKey() (uint32, error)
- func GetOnline() ([]byte, error)
- func IntToIp(ip_int uint32) string
- func IpToUInt32(ip_str string) uint32
- func IsIPinCIDR(ipstr, netstr string) (ok bool, err error)
- func UrlDecode(str string) (string, error)
- func UrlEncode(str string) string
- type QQwry
Constants ¶
View Source
const ( INDEX_LEN = 7 // INDEX_LEN 索引长度 REDIRECT_MODE_1 = 0x01 // REDIRECT_MODE_1 国家的类型, 指向另一个指向 REDIRECT_MODE_2 = 0x02 // REDIRECT_MODE_2 国家的类型, 指向一个指向 )
Variables ¶
This section is empty.
Functions ¶
func ExternalIP ¶
func GetCidrIpRangeIP ¶
根据CIDR获取IP范围
func GetCidrIpRangeString ¶
根据CIDR获取IP范围
func GetCidrIpRangeUInt32 ¶
根据CIDR获取IP范围
func IpToUInt32 ¶
func IsIPinCIDR ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.