iplocation

package
v0.0.0-...-f84f93e Latest Latest
Warning

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

Go to latest
Published: May 30, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

*********************************************************

  • Author : Michael
  • Email : dolotech@163.com
  • Last modified : 2016-07-07 23:40
  • Filename : iplocation.go
  • Description : 简介: 根据用户的IP地址,在纯真IP数据库中检索用户的实体地址
  • ******************************************************

Index

Constants

View Source
const QqwryFile = "./qqwry.dat"

Variables

This section is empty.

Functions

This section is empty.

Types

type Ip2LocationResp

type Ip2LocationResp struct {
	Ok      bool
	IP      string
	Country string
	Area    string
}

func Query

func Query(ipaddress string) *Ip2LocationResp

Jump to

Keyboard shortcuts

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