freshcn / qqwry Goto Github PK
View Code? Open in Web Editor NEW纯真ip库的golang服务
纯真ip库的golang服务
作者你好,我最近测试了你的API,感觉总体来说非常好,不过你的API输出格式中JSON包含了本身输入的IP地址做为字段,这样在解析的时候会生成动态字段名,举个例子,如果我输入114.114.114.114,
http://127.0.0.1:2060/?ip=114.114.114.114
得到的结果是:
{"114.114.114.114":{"ip":"114.114.114.114","country":"江苏省南京市","area":"南京信风网络科技有限公司GreatbitDNS服务器"}}
进行解析后得到结果:
请教一下源代码中的源个部分能做一下小调整,使用输出结果只保留country和areap字段
例如如下简单的输出结果:
{
"ip": "114.114.114.114",
"country": "江苏省南京市",
"area": "南京信风网络科技有限公司GreatbitDNS服务器"
}
非常感谢。
怎么区分省市区
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.