Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

QQWry golang version

License

NotificationsYou must be signed in to change notification settings

yinheli/qqwry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

纯真IP库 golang 版

有关纯真IP库的文档详见http://lumaqq.linuxsir.org/article/qqwry_format_detail.html

1. 依赖

  • mahonia 处理 GBK 编码的地址信息 (请确保先装好hg)
go get code.google.com/p/mahonia

update:

go get github.com/yinheli/mahonia
  • 纯真 IP 库

下载地址http://update.cz88.net/soft/qqwry.rar

2. 使用

  • 下载
go get github.com/yinheli/qqwry
  • 在项目中引入
import ("github.com/yinheli/qqwry""log")funcmain() {q:=qqwry.NewQQwry("qqwry.dat")q.Find("180.89.94.90")log.Printf("ip:%v, Country:%v, City:%v",q.Ip,q.Country,q.City)// output:// 2014/02/22 22:10:32 ip:180.89.94.90, Country:北京市, City:长城宽带}

3. 使用注意

  • qqwry 不是线程安全的
  • qqwry 没有使用缓存

4. license

Licensed under MIT.

About

QQWry golang version

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp