You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
sre 3acb551f94
改造 支持域名
4 years ago
global 改造 支持域名 4 years ago
ip2region 改造 支持域名 4 years ago
util 改造 支持域名 4 years ago
.gitignore 改造 支持域名 4 years ago
README.md 改造 支持域名 4 years ago
getIPInfo.go 改造 支持域名 4 years ago
go.mod 改造 支持域名 4 years ago
ip2region.db 改造 支持域名 4 years ago
main.go 改造 支持域名 4 years ago
resJSON.go 改造 支持域名 4 years ago

README.md

ip地址归属地查询

http://127.0.0.1:8080?address=sre.ink

bench

goos: windows
goarch: amd64
pkg: IPRegion/ip2region
cpu: AMD Ryzen 9 5900HX with Radeon Graphics
BenchmarkBtreeSearch
BenchmarkBtreeSearch-16           215227              5310 ns/op
BenchmarkMemorySearch
BenchmarkMemorySearch-16         5435004               220.3 ns/op
BenchmarkBinarySearch
BenchmarkBinarySearch-16           34378             34766 ns/op
PASS