From ce736fd1c23f5411f658e8e94f8ff37b70255745 Mon Sep 17 00:00:00 2001 From: zhshch2002 Date: Thu, 12 May 2022 21:53:25 +0800 Subject: [PATCH] add: ipgeo --- ipgeo/ipgeo.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 ipgeo/ipgeo.go diff --git a/ipgeo/ipgeo.go b/ipgeo/ipgeo.go new file mode 100644 index 0000000..f7211e9 --- /dev/null +++ b/ipgeo/ipgeo.go @@ -0,0 +1,13 @@ +package ipgeo + +type IPGeoData struct { + Asnumber string `json:"asnumber"` + Country string `json:"country"` + Prov string `json:"prov"` + City string `json:"city"` + District string `json:"district"` + Owner string `json:"owner"` + Isp string `json:"isp"` +} + +type Source = func(ip string) (IPGeoData, error)