From 7be2a6d747a767d016b976de60ce2bb21d3a5203 Mon Sep 17 00:00:00 2001 From: Emile Date: Mon, 27 Jan 2020 20:12:24 +0100 Subject: moved structs into an own file --- structs.go | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 structs.go (limited to 'structs.go') diff --git a/structs.go b/structs.go new file mode 100644 index 0000000..8b53fe9 --- /dev/null +++ b/structs.go @@ -0,0 +1,25 @@ +package main + +type geoipresult struct { + Query string `json:"query"` + Status string `json:"status"` + Country string `json:"country"` + CountryCode string `json:"countryCode"` + Region string `json:"region"` + RegionName string `json:"regionName"` + City string `json:"city"` + Zip string `json:"zip"` + Lat float64 `json:"lat"` + Lon float64 `json:"lon"` + Timezone string `json:"timezone"` + Isp string `json:"isp"` + Org string `json:"org"` + As string `json:"as"` +} + +type location struct { + key string `json:"key"` + latitude float64 `json:"latitude"` + longitude float64 `json:"longitude"` + name string `json:"name"` +} -- cgit 1.4.1