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)