diff options
author | Emile <hanemile@protonmail.com> | 2020-01-27 20:13:15 +0100 |
---|---|---|
committer | Emile <hanemile@protonmail.com> | 2020-01-27 20:13:15 +0100 |
commit | 651f15d9b8bde1b024f97a42e92634afdc1eeda7 (patch) | |
tree | c6dfb94751084d720559c04563b35d31ae9f074a /src/structs.go | |
parent | 7be2a6d747a767d016b976de60ce2bb21d3a5203 (diff) |
moved the source into an own folder
Diffstat (limited to 'src/structs.go')
-rw-r--r-- | src/structs.go | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/structs.go b/src/structs.go new file mode 100644 index 0000000..8b53fe9 --- /dev/null +++ b/src/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"` +} |