V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
The Go Programming Language
http://golang.org/
Go Playground
Go Projects
Revel Web Framework
ochapman
V2EX  ›  Go 编程语言

简单封装了 ip.taobao.com 的 Rest API -- ipinfo

  •  
  •   ochapman · 2014-10-18 18:26:46 +08:00 · 1031 次点击
    这是一个创建于 3471 天前的主题,其中的信息可能已经有所发展或是发生改变。
    地址如下
    https://github.com/ochapman/ipinfo

    对返回值进行了转换。
    api的接口访问有限制,在处理多个IP时会有问题,因此,批量时需要注意。

    感想:
    1. go test是个好工具,对于接口类配对_test.go能排除简单的错误。
    1 条回复    2014-10-31 15:19:58 +08:00
    shajiquan
        1
    shajiquan  
       2014-10-31 15:19:58 +08:00
    赞!

    我写的 百度地图 的 IP、GEO、地址转换: https://github.com/shajiquan/gobaidumap
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1040 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 18:46 · PVG 02:46 · LAX 11:46 · JFK 14:46
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.