Proyek
Lihat di GitHub
phuslu/iploc
Tentang
Pustaka IP-ke-negara tercepat.
Alat pengembanganPertumbuhan bintang terukur
- dalam 24 jam
- 0
- dalam 7 hari
- +1
- dalam 15 hari
- +1
- dalam 1 bulan
- Mengumpulkan riwayat
Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.
README.md
Asliiploc - fastest ip country library
Getting Started
try on https://play.golang.org/p/T_7jfSr0cE1
package main
import (
"fmt"
"net/netip"
"github.com/phuslu/iploc"
)
func main() {
fmt.Printf("%s", iploc.IPCountry(netip.MustParseAddr("1.1.1.1"))
}
// Output: US
Benchmarks
goos: windows
goarch: amd64
pkg: github.com/phuslu/iploc
cpu: 11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz
BenchmarkIPCountryForIPv4
BenchmarkIPCountryForIPv4-8 80750439 13.57 ns/op 0 B/op 0 allocs/op
BenchmarkIPCountryForIPv6
BenchmarkIPCountryForIPv6-8 57166812 20.44 ns/op 0 B/op 0 allocs/op
PASS
ok github.com/phuslu/iploc 2.360s
Acknowledgment
This site or product includes IP2Location LITE data available from http://www.ip2location.com.
How often are the inlined ip data updated?
Following IP2Location Lite Database, usually monthly.
Jelajahi proyek terkait
Memuat…